Commit acbe8f5d authored by Ferdinand Fischer's avatar Ferdinand Fischer
Browse files

Changed verification of error messages in...

Changed verification of error messages in unittests.quantity.testDiscrete/testDiffConstant2d because matlab changed error identifiers in R2020a to R2019b
parent e3ef4d11
......@@ -670,9 +670,9 @@ myQuantity = quantity.Discrete(cat(3, 2*ones(11, 21), zNdgrid, zetaNdgrid), ...
myQuantityDz = diff(myQuantity, 'z', 1);
myQuantityDzeta = diff(myQuantity, 'zeta', 1);
testCase.verifyError( @() diff(myQuantity), 'MATLAB:functionValidation:NotScalar' )
testCase.verifyError( @() diff(myQuantity, 1, {'z', 'zeta'}), 'MATLAB:functionValidation:ClassConversionError' )
testCase.verifyError( @() diff(myQuantity, {'z', 'zeta'}), 'MATLAB:functionValidation:NotScalar' )
testCase.verifyError( @() diff(myQuantity), ?MException )
testCase.verifyError( @() diff(myQuantity, 1, {'z', 'zeta'}), ?MException )
testCase.verifyError( @() diff(myQuantity, {'z', 'zeta'}), ?MException )
% constant
testCase.verifyEqual(myQuantityDz(1).on(), zeros(11, 21));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment