@@ -14,31 +14,37 @@ function test_dirs(tc)
14
14
end
15
15
16
16
17
- methods (Test , TestTags = {' R2017a ' })
17
+ methods (Test , TestTags = {' R2016a ' })
18
18
19
19
function test_exists(tc , Ps )
20
20
r = stdlib .exists(Ps{1 });
21
21
tc .verifyEqual(r , Ps{2 }, Ps{1 })
22
22
23
- r = stdlib .exists(string(Ps{1 }));
24
- tc .verifyEqual(r , Ps{2 })
23
+ if ~stdlib .matlabOlderThan(' R2016b' )
24
+ r = stdlib .exists(string(Ps{1 }));
25
+ tc .verifyEqual(r , Ps{2 })
26
+ end
25
27
end
26
28
27
29
28
30
function test_is_readable(tc , Ps )
29
31
r = stdlib .is_readable(Ps{1 });
30
32
tc .verifyEqual(r , Ps{2 })
31
33
32
- r = stdlib .is_readable(string(Ps{1 }));
33
- tc .verifyEqual(r , Ps{2 });
34
+ if ~stdlib .matlabOlderThan(' R2016b' )
35
+ r = stdlib .is_readable(string(Ps{1 }));
36
+ tc .verifyEqual(r , Ps{2 });
37
+ end
34
38
end
35
39
36
40
function test_is_writable(tc , Ps )
37
41
r = stdlib .is_writable(Ps{1 });
38
42
tc .verifyEqual(r , Ps{2 })
39
43
40
- r = stdlib .is_writable(string(Ps{1 }));
41
- tc .verifyEqual(r , Ps{2 });
44
+ if ~stdlib .matlabOlderThan(' R2016b' )
45
+ r = stdlib .is_writable(string(Ps{1 }));
46
+ tc .verifyEqual(r , Ps{2 });
47
+ end
42
48
end
43
49
end
44
50
@@ -55,7 +61,9 @@ function test_is_char_device(tc, B_is_char_device)
55
61
if ismember(B_is_char_device , stdlib .Backend().select(' is_char_device' ))
56
62
tc .verifyTrue(r , n )
57
63
58
- tc .verifyTrue(stdlib .is_char_device(string(n ), B_is_char_device ))
64
+ if ~stdlib .matlabOlderThan(' R2016b' )
65
+ tc .verifyTrue(stdlib .is_char_device(string(n ), B_is_char_device ))
66
+ end
59
67
else
60
68
tc .verifyEmpty(r )
61
69
end
0 commit comments