44
55function test_expanduser(tc )
66import stdlib .expanduser
7+ tc .assumeTrue(usejava(" jvm" ), " Java required" )
78
89tc .verifyEmpty(expanduser(string .empty ))
910tc .verifyEqual(expanduser(" " ), " " )
@@ -23,7 +24,7 @@ function test_makedir(tc)
2324
2425function test_samepath(tc )
2526import stdlib .fileio .samepath
26- tc .assumeTrue(usejava(" jvm" ), " Java required for samepath " )
27+ tc .assumeTrue(usejava(" jvm" ), " Java required" )
2728
2829tc .verifyEmpty(samepath(string .empty , string .empty ))
2930tc .verifyTrue(samepath(" " , " " ))
@@ -34,6 +35,7 @@ function test_samepath(tc)
3435
3536
3637function test_which_name(tc )
38+ tc .assumeTrue(usejava(" jvm" ), " Java required" )
3739
3840tc .verifyEmpty(stdlib .which(tempname ))
3941
@@ -51,6 +53,7 @@ function test_which_name(tc)
5153
5254function test_is_exe_which_fullpath(tc )
5355import matlab .unittest .constraints .IsFile
56+ tc .assumeTrue(usejava(" jvm" ), " Java required" )
5457
5558tc .verifyEmpty(stdlib .is_exe(string .empty ))
5659tc .verifyFalse(stdlib .is_exe(" " ))
@@ -80,6 +83,7 @@ function test_is_exe_which_fullpath(tc)
8083function test_hash(tc )
8184import matlab .unittest .constraints .IsFile
8285import matlab .unittest .fixtures .TemporaryFolderFixture
86+ tc .assumeTrue(usejava(" jvm" ), " Java required" )
8387
8488fixture = tc .applyFixture(TemporaryFolderFixture );
8589
0 commit comments