Mercurial > hg > octave-nkf
diff scripts/set/create_set.m @ 7411:83a8781b529d
[project @ 2008-01-22 21:52:25 by jwe]
author | jwe |
---|---|
date | Tue, 22 Jan 2008 21:52:26 +0000 |
parents | 4571f691b0ce |
children | 6f2d95255911 |
line wrap: on
line diff
--- a/scripts/set/create_set.m +++ b/scripts/set/create_set.m @@ -60,3 +60,12 @@ endif endfunction + +%!assert(all (all (create_set ([1, 2; 3, 4; 2, 4]) == [1, 2, 3, 4]))); + +%!assert(all (all (create_set ([1; 2; 3; 4; 2; 4]) == [1, 2, 3, 4]))); + +%!assert(isempty (create_set ([]))); + +%!error create_set (1, 2); +