Mercurial > repos > public > sbplib
changeset 623:190941ec12d8 feature/grids
Print cleaning of evalOn and evalOnTest
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Fri, 20 Oct 2017 18:55:02 +0200 |
parents | 0813d700a816 |
children | 0e20f4c9a94e |
files | +grid/evalOn.m +grid/evalOnTest.m |
diffstat | 2 files changed, 3 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/+grid/evalOn.m Fri Oct 20 18:43:26 2017 +0200 +++ b/+grid/evalOn.m Fri Oct 20 18:55:02 2017 +0200 @@ -17,8 +17,6 @@ % func should now be a function_handle if g.D ~= nargin(func) - g.D - nargin(func) error('grid:evalOn:WrongNumberOfInputs', 'The number of inputs of the function must match the dimension of the domain.') end
--- a/+grid/evalOnTest.m Fri Oct 20 18:43:26 2017 +0200 +++ b/+grid/evalOnTest.m Fri Oct 20 18:55:02 2017 +0200 @@ -31,7 +31,7 @@ cases = { {getTestGrid('1d'), @(x,y)x-y}, {getTestGrid('2d'), @(x)x }, - } + }; for i = 1:length(cases) g = cases{i}{1}; @@ -111,9 +111,9 @@ function testInputErrorVectorValued(testCase) - in = { + in = { [1,2,3], - @(x,y)[x,-y]; + @(x,y)[x,-y], }; g = getTestGrid('2d');