Commit 844d08b9 authored by Jakob Gabriel's avatar Jakob Gabriel
Browse files

renamed unittests of changeGrid -> changeDomain & gridJoin -> join

parent f8746d12
......@@ -1642,9 +1642,9 @@ e = quantity.Discrete.zeros([3, 0], quantity.Domain.defaultDomain(10));
testCase.verifyEmpty( e );
end
end % testZeros()
function testChangeGrid(testCase)
function testChangeDomain(testCase)
z = quantity.Domain("z", linspace(0, 1, 21).');
t = quantity.Domain("t", linspace(0, 1, 31));
......@@ -1678,8 +1678,7 @@ d = quantity.Domain('z', linspace(0,1, 3));
E = quantity.Discrete( sin(e.grid), e);
E_ = E.changeDomain(d);
testCase.verifyEqual(E_.on(), E.on(d))
end
end % testChangeDomain()
function testSubs(testCase)
%%
......
......@@ -246,7 +246,7 @@ function testDefaultGrid(testCase)
end
function testGridJoin(tc)
function testJoin(tc)
s = linspace(0, 1);
z = linspace(0, 1, 71)';
t = linspace(0, 1, 51);
......@@ -288,7 +288,7 @@ d2 = quantity.Domain.empty;
tc.verifyEqual( d1.join( d2 ), [Z T] )
end
end % join()
function testFind_Index(tc)
z = linspace(0, 2*pi, 71)';
......
......@@ -105,7 +105,7 @@ testCase.verifyEqual(double(Phi1), double(Phi2), 'AbsTol', 1e-2);
testCase.verifyEqual(double(Psi1), double(Psi2), 'AbsTol', 1e-2);
end
function testChangeGrid(testCase)
function testChangeDomain(testCase)
A = testCase.TestData.A;
a = testCase.TestData.a;
A0 = A.subs('z', 0);
......@@ -114,8 +114,8 @@ function testChangeGrid(testCase)
testCase.verifyEqual( ...
a{k}.at(0), squeeze(A0(k).coefficient.on()), 'AbsTol', 10*eps);
end
end
end % testChangeDomain
function testMTimes(testCase)
zGrid = linspace(0, pi, 3)';
......
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