Skip to content

Commit b20dc86

Browse files
committed
test: is_interactive
1 parent 948eb49 commit b20dc86

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/TestSys.m

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
classdef TestSys < matlab.unittest.TestCase
22

33
properties (TestParameter)
4-
fun = {stdlib.isoctave, stdlib.isinteractive, stdlib.has_dotnet, ...
4+
fun = {stdlib.isoctave, stdlib.has_dotnet, ...
55
stdlib.has_java, stdlib.has_python}
6+
CI = getenv("CI") == "true" || getenv("GITHUB_ACTIONS") == "true"
67
end
78

89

@@ -16,6 +17,10 @@ function test_is_cygwin(tc)
1617
tc.verifyFalse(stdlib.is_cygwin())
1718
end
1819

20+
function test_is_interactive(tc)
21+
tc.verifyNotEqual(stdlib.is_interactive(), tc.CI)
22+
end
23+
1924
function test_is_rosetta(tc)
2025
if ismac()
2126
tc.verifyClass(stdlib.is_rosetta(), 'logical')

0 commit comments

Comments
 (0)