Mercurial > repos > public > sbplib
diff +grid/CartesianTest.m @ 173:f7bb2a94d291 feature/grids
Added functionallity for storing grid scaling on structured grids.
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Fri, 26 Feb 2016 16:06:03 +0100 |
parents | ba1ae5b2c45e |
children | c5ca9bbfed41 |
line wrap: on
line diff
--- a/+grid/CartesianTest.m Thu Feb 25 11:30:05 2016 +0100 +++ b/+grid/CartesianTest.m Fri Feb 26 16:06:03 2016 +0100 @@ -184,3 +184,13 @@ end end +function testScaling(testCase) + in = {[1 2 3], [1 2]}; + g = grid.Cartesian(in{:}); + + testCase.verifyError(@()g.scaling(),'grid:Cartesian:NoScalingSet'); + + g.h = [2 1]; + testCase.verifyEqual(g.scaling(),[2 1]); + +end