Commit 04f4467a authored by Ferdinand Fischer's avatar Ferdinand Fischer
Browse files

Fixes #33

was already fixed in previous commits
parent 0153f0cc
......@@ -45,8 +45,12 @@ end
function testSubs(testCase)
f = quantity.Discrete((1:5)', quantity.EquidistantDomain("t", 0, 1, "stepNumber", 5));
f.subs("t", 1)
f.changeGrid(quantity.Domain("t", linspace(0,1)))
testCase.verifyEqual( f.subs("t", 1), f.on(1))
testCase.verifyEqual( f.changeGrid(quantity.Domain("t", linspace(0,1))).on(), linspace(1,5)', 'AbsTol', 1e-15);
f = quantity.Symbolic(sym("t"), quantity.EquidistantDomain("t", 0, 1, "stepNumber", 5));
testCase.verifyEqual( f.subs("t", 1), f.on(1))
testCase.verifyEqual( f.changeGrid(quantity.Domain("t", linspace(0,1))).on(), linspace(0,1)', 'AbsTol', 1e-15);
end
\ No newline at end of file
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