11classdef (SharedTestFixtures = { matlab .unittest .fixtures .PathFixture(fileparts(fileparts(mfilename(' fullpath' ))))}, ...
2- TestTags = {' R2017b ' }) ...
2+ TestTags = {' R2017a ' }) ...
33 TestDisk < matlab .unittest .TestCase
44
55properties
66CI = is_ci()
77end
88
99properties (TestParameter )
10- Ps = {" ." , " " , " /" , getenv(' SystemDrive' ), " not-exist" }
11- Po = {mfilename(" fullpath" ) + " .m" , pwd(), " ." , " " , " not-exist" }
10+ Ps = {' .' , ' ' , ' /' , pwd(), getenv(' SystemDrive' ), ' not-exist' }
1211B_ps = {' python' , ' sys' }
1312B_jps = {' java' , ' python' , ' sys' }
1413B_jdps = {' java' , ' dotnet' , ' python' , ' sys' }
@@ -147,13 +146,13 @@ function test_remove_file(tc)
147146end
148147
149148
150- function test_device(tc , Po , B_jps )
151- [i , b ] = stdlib .device(Po , B_jps );
149+ function test_device(tc , Ps , B_jps )
150+ [i , b ] = stdlib .device(Ps , B_jps );
152151tc .verifyClass(i , ' uint64' )
153152tc .assertEqual(char(b ), B_jps )
154153
155154if ismember(B_jps , stdlib .Backend().select(' device' ))
156- if ~stdlib .exists(Po )
155+ if ~stdlib .exists(Ps )
157156 tc .verifyEmpty(i )
158157 else
159158 tc .assertNotEmpty(i )
@@ -165,14 +164,14 @@ function test_device(tc, Po, B_jps)
165164end
166165
167166
168- function test_inode(tc , Po , B_jps )
167+ function test_inode(tc , Ps , B_jps )
169168
170- [i , b ] = stdlib .inode(Po , B_jps );
169+ [i , b ] = stdlib .inode(Ps , B_jps );
171170tc .verifyClass(i , ' uint64' )
172171tc .assertEqual(char(b ), B_jps )
173172
174173if ismember(B_jps , stdlib .Backend().select(' inode' ))
175- if ~stdlib .exists(Po )
174+ if ~stdlib .exists(Ps )
176175 tc .verifyEmpty(i )
177176 else
178177 tc .assertNotEmpty(i )
@@ -185,13 +184,13 @@ function test_inode(tc, Po, B_jps)
185184end
186185
187186
188- function test_owner(tc , Po , B_jdps )
189- [o , b ] = stdlib .get_owner(Po , B_jdps );
187+ function test_owner(tc , Ps , B_jdps )
188+ [o , b ] = stdlib .get_owner(Ps , B_jdps );
190189tc .assertEqual(char(b ), B_jdps )
191190tc .verifyClass(o , ' char' )
192191
193192if ismember(B_jdps , stdlib .Backend().select(' get_owner' ))
194- if ~stdlib .exists(Po )
193+ if ~stdlib .exists(Ps )
195194 tc .verifyEqual(o , ' ' )
196195 else
197196 tc .verifyGreaterThan(strlength(o ), 0 )
0 commit comments