Skip to content

Commit

Permalink
test less R2020b pass
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Oct 16, 2020
1 parent 700ef7e commit 8c050f9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions +gemini3d/+tests/TestAUnit.m
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,10 @@ function test_absolute_path(tc)

function test_with_suffix(tc)
tc.verifyEqual(gemini3d.fileio.with_suffix("foo.h5", ".nc"), "foo.nc")
if ~verLessThan("matlab", "9.9")
% fileparts vectorized in R2020b
tc.verifyEqual(gemini3d.fileio.with_suffix(["foo.h5", "bar.dat"], ".nc"), ["foo.nc", "bar.nc"])
end
tc.verifyEmpty(gemini3d.fileio.with_suffix(string.empty, ".nc"))
end

Expand All @@ -69,7 +72,10 @@ function test_path_tail(tc)
tc.verifyEqual(gemini3d.fileio.path_tail("c.h5"), "c.h5")
tc.verifyEqual(gemini3d.fileio.path_tail("a/b/c/"), "c")

if ~verLessThan("matlab", "9.9")
% fileparts vectorized in R2020b
tc.verifyEqual(gemini3d.fileio.path_tail(["c.h5", "a/b/c/"]), ["c.h5", "c"])
end

tc.verifyEmpty(gemini3d.fileio.path_tail(string.empty))
end
Expand Down

0 comments on commit 8c050f9

Please sign in to comment.