File tree Expand file tree Collapse file tree 3 files changed +13
-7
lines changed Expand file tree Collapse file tree 3 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,7 @@ function test_makedir(tc)
77
77
end
78
78
79
79
function test_which(tc )
80
+ import matlab .unittest .constraints .IsFile
80
81
import stdlib .fileio .which
81
82
import stdlib.fileio.is_exe
82
83
@@ -99,7 +100,7 @@ function test_which(tc)
99
100
else
100
101
tc .verifyFalse(endsWith(exe , " .exe" ))
101
102
end
102
- tc .assertTrue(isfile( exe ) )
103
+ tc .verifyThat( exe , IsFile )
103
104
104
105
end
105
106
Original file line number Diff line number Diff line change 3
3
methods (Test )
4
4
5
5
function test_find_fortran(tc )
6
- tc .assertTrue(isstring(stdlib .sys .find_fortran_compiler()))
6
+ import matlab .unittest .constraints .IsOfClass
7
+ tc .verifyThat(stdlib .sys .find_fortran_compiler(), IsOfClass(' string' ))
7
8
end
8
9
9
10
function test_cygwin(tc )
10
- tc .assertTrue(islogical(stdlib .sys .iscygwin ))
11
+ import matlab .unittest .constraints .IsOfClass
12
+ tc .verifyThat(stdlib .sys .iscygwin , IsOfClass(' logical' ))
11
13
end
12
14
13
15
function test_octave(tc )
14
- tc .assertTrue(islogical(stdlib .sys .isoctave ))
16
+ import matlab .unittest .constraints .IsOfClass
17
+ tc .verifyThat(stdlib .sys .isoctave , IsOfClass(' logical' ))
15
18
end
16
19
17
20
function test_wsl(tc )
18
- tc .assertTrue(islogical(stdlib .sys .iswsl ))
21
+ import matlab .unittest .constraints .IsOfClass
22
+ tc .verifyThat(stdlib .sys .iswsl , IsOfClass(' logical' ))
19
23
end
20
24
21
25
function test_isinteractive(tc )
22
- tc .assertTrue(islogical(stdlib .sys .isinteractive ))
26
+ import matlab .unittest .constraints .IsOfClass
27
+ tc .verifyThat(stdlib .sys .isinteractive , IsOfClass(' logical' ))
23
28
end
24
29
25
30
end
Original file line number Diff line number Diff line change 21
21
timeout-minutes : 5
22
22
uses : matlab-actions/run-command@v1
23
23
with :
24
- command : r = runtests('stdlib'), assert ~isempty(r), assertSuccess(r)
24
+ command : r = runtests('stdlib'), assert( ~isempty(r) ), assertSuccess(r)
You can’t perform that action at this time.
0 commit comments