Add construct() and its tests.
[octave.git] / tests / construct_tests.m
1 A = construct(3,4, @(i,j) i+j);
2
3 expected = [ 2, 3, 4, 5;
4 3, 4, 5, 6;
5 4, 5, 6, 7];
6
7 unit_test_equals("construct a_ij == i+j", ...
8 expected, ...
9 A);