@@ -22,6 +22,12 @@ function setupTempWorkingDirectory(testCase)
2222 import matlab .unittest .fixtures .WorkingFolderFixture ;
2323 testCase .applyFixture(WorkingFolderFixture );
2424 end
25+
26+ function suppressFeatherV1Warnings(testCase )
27+ import matlab .unittest .fixtures .SuppressedWarningsFixture
28+ testCase .applyFixture(SuppressedWarningsFixture(" arrow:io:feather:v1:FeatherReadDeprecated" ));
29+ testCase .applyFixture(SuppressedWarningsFixture(" arrow:io:feather:v1:FeatherWriteDeprecated" ));
30+ end
2531
2632 end
2733
@@ -267,6 +273,29 @@ function UnicodeVariableNames(testCase)
267273 testCase .verifyEqual(actualTable , expectedTable );
268274 end
269275
276+ function VerifyFeatherReadDeprecationWarning(testCase )
277+ filename = fullfile(pwd , ' temp.feather' );
278+
279+ t = array2table([1 , 2 , 3 ]);
280+ featherwrite(filename , t );
281+
282+ warning(" on" , " arrow:io:feather:v1:FeatherReadDeprecated" );
283+ fcn = @() featherread(filename );
284+ testCase .verifyWarning(fcn , " arrow:io:feather:v1:FeatherReadDeprecated" )
285+ warning(" off" , " arrow:io:feather:v1:FeatherReadDeprecated" );
286+ end
287+
288+ function VerifyFeatherWriteDeprecationWarning(testCase )
289+ filename = fullfile(pwd , ' temp.feather' );
290+
291+ t = array2table([1 , 2 , 3 ]);
292+
293+ warning(" on" , " arrow:io:feather:v1:FeatherWriteDeprecated" );
294+ fcn = @() featherwrite(filename , t );
295+ testCase .verifyWarning(fcn , " arrow:io:feather:v1:FeatherWriteDeprecated" )
296+ warning(" off" , " arrow:io:feather:v1:FeatherReadDeprecated" );
297+ end
298+
270299 end
271300end
272301
0 commit comments