Add envelope() and its tests.
[octave.git] / tests / envelope_tests.m
1 A = [2, 1, 1, 0; ...
2 1, 2, 0, 1; ...
3 1, 0, 2, 0; ...
4 0, 1, 0, 1];
5
6 expected = { [1,2], [1,3], [2,3], [2,4], [3,4] };
7 actual = envelope(A);
8
9 unit_test_equals("envelope works on an example", ...
10 true, ...
11 isequal(actual, expected));