File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ function test_not(tc, Pn)
1414function test_short_folder(tc )
1515import matlab .unittest .constraints .IsFolder
1616
17- progdir = stdlib .posix( getenv(" PROGRAMFILES" ) );
17+ progdir = getenv(" PROGRAMFILES" );
1818if ispc()
1919 tc .assertThat(progdir , IsFolder , " $Env:PROGRAMFILES is not a directory" )
2020end
@@ -40,7 +40,11 @@ function test_short_file(tc, Pmr)
4040 if contains(Pmr , " " )
4141 tc .verifySubstring(s , " ~" )
4242 end
43- tc .verifyEqual(stdlib .canonical(s ), stdlib .posix(Pmr ), " shortname didn't resolve same as canonical" )
43+
44+ tc .verifyLessThan(strlength(s ), strlength(Pmr ))
45+
46+ tc .verifyTrue(stdlib .samepath(stdlib .canonical(s ), Pmr ),...
47+ sprintf(" mex: %d" , stdlib .is_mex_fun(" stdlib.windows_shortname" )))
4448else
4549 tc .verifyEqual(s , string(Pmr ))
4650end
You can’t perform that action at this time.
0 commit comments