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)
7777end
7878
7979function test_which(tc )
80+ import matlab .unittest .constraints .IsFile
8081import stdlib .fileio .which
8182import stdlib.fileio.is_exe
8283
@@ -99,7 +100,7 @@ function test_which(tc)
99100else
100101 tc .verifyFalse(endsWith(exe , " .exe" ))
101102end
102- tc .assertTrue(isfile( exe ) )
103+ tc .verifyThat( exe , IsFile )
103104
104105end
105106
Original file line number Diff line number Diff line change 33methods (Test )
44
55function 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' ))
78end
89
910function test_cygwin(tc )
10- tc .assertTrue(islogical(stdlib .sys .iscygwin ))
11+ import matlab .unittest .constraints .IsOfClass
12+ tc .verifyThat(stdlib .sys .iscygwin , IsOfClass(' logical' ))
1113end
1214
1315function test_octave(tc )
14- tc .assertTrue(islogical(stdlib .sys .isoctave ))
16+ import matlab .unittest .constraints .IsOfClass
17+ tc .verifyThat(stdlib .sys .isoctave , IsOfClass(' logical' ))
1518end
1619
1720function test_wsl(tc )
18- tc .assertTrue(islogical(stdlib .sys .iswsl ))
21+ import matlab .unittest .constraints .IsOfClass
22+ tc .verifyThat(stdlib .sys .iswsl , IsOfClass(' logical' ))
1923end
2024
2125function test_isinteractive(tc )
22- tc .assertTrue(islogical(stdlib .sys .isinteractive ))
26+ import matlab .unittest .constraints .IsOfClass
27+ tc .verifyThat(stdlib .sys .isinteractive , IsOfClass(' logical' ))
2328end
2429
2530end
Original file line number Diff line number Diff line change 2121 timeout-minutes : 5
2222 uses : matlab-actions/run-command@v1
2323 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