Skip to content

Commit

Permalink
Add test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Hale committed Jan 26, 2018
1 parent 484e819 commit 9a78cee
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,15 @@
err(6) = norm(feval(F, xx) - feval(G, xx), inf);
tol(6) = 1e2*eps*vscale(G)*hscale(G);

%% Test quasimatrix support
x = chebfun('x', [0 1]);
V = cheb2quasi(vander(x, 5));
F = diff(V, .5);
err(7) = 0;
for k = 1:numel(V)
err(7) = err(7) + norm(diff(V(:,k), .5) - F(:,k));
end
tol(7) = 10*eps;

%%
pass = err < tol;
Expand Down

0 comments on commit 9a78cee

Please sign in to comment.