Mercurial > hg > octave-nkf
comparison src/data.cc @ 14521:3b19a952ab54
test: remove obsolete warning test for linspace.
data.cc: delete test that depended on array-to-vector warning being on.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Tue, 03 Apr 2012 20:44:05 -0700 |
parents | c4ed0fdf2b62 |
children | e8e86ae3abbc |
comparison
equal
deleted
inserted
replaced
14520:c4ed0fdf2b62 | 14521:3b19a952ab54 |
---|---|
4717 %! x3 = linspace (1, -2, 10); | 4717 %! x3 = linspace (1, -2, 10); |
4718 %! assert (size (x1) == [1, 100] && x1(1) == 1 && x1(100) == 2); | 4718 %! assert (size (x1) == [1, 100] && x1(1) == 1 && x1(100) == 2); |
4719 %! assert (size (x2) == [1, 10] && x2(1) == 1 && x2(10) == 2); | 4719 %! assert (size (x2) == [1, 10] && x2(1) == 1 && x2(10) == 2); |
4720 %! assert (size (x3) == [1, 10] && x3(1) == 1 && x3(10) == -2); | 4720 %! assert (size (x3) == [1, 10] && x3(1) == 1 && x3(10) == -2); |
4721 | 4721 |
4722 %#assert (linspace ([1, 2; 3, 4], 5, 6), linspace (1, 5, 6)) | 4722 %assert (linspace ([1, 2; 3, 4], 5, 6), linspace (1, 5, 6)) |
4723 | |
4724 %!fail ("linspace ([1, 2; 3, 4], 5, 6)", "warning") | |
4725 | 4723 |
4726 %!error linspace () | 4724 %!error linspace () |
4727 %!error linspace (1, 2, 3, 4) | 4725 %!error linspace (1, 2, 3, 4) |
4728 */ | 4726 */ |
4729 | 4727 |