7017
|
1 ## Copyright (C) 2006, 2007 John W. Eaton |
7016
|
2 ## |
|
3 ## This file is part of Octave. |
|
4 ## |
|
5 ## Octave is free software; you can redistribute it and/or modify it |
|
6 ## under the terms of the GNU General Public License as published by |
|
7 ## the Free Software Foundation; either version 3 of the License, or (at |
|
8 ## your option) any later version. |
|
9 ## |
|
10 ## Octave is distributed in the hope that it will be useful, but |
|
11 ## WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
13 ## General Public License for more details. |
|
14 ## |
|
15 ## You should have received a copy of the GNU General Public License |
|
16 ## along with Octave; see the file COPYING. If not, see |
|
17 ## <http://www.gnu.org/licenses/>. |
|
18 |
5590
|
19 %% Automatically generated from DejaGNU files |
|
20 |
|
21 %% test/octave.test/set/create_set-1.m |
|
22 %!assert(all (all (create_set ([1, 2; 3, 4; 2, 4]) == [1, 2, 3, 4]))); |
|
23 |
|
24 %% test/octave.test/set/create_set-2.m |
|
25 %!assert(all (all (create_set ([1; 2; 3; 4; 2; 4]) == [1, 2, 3, 4]))); |
|
26 |
|
27 %% test/octave.test/set/create_set-3.m |
|
28 %!assert(isempty (create_set ([]))); |
|
29 |
|
30 %% test/octave.test/set/create_set-4.m |
|
31 %!error create_set (1, 2); |
|
32 |
|
33 %% test/octave.test/set/union-1.m |
|
34 %!assert(all (all (union ([1, 2, 4], [2, 3, 5]) == [1, 2, 3, 4, 5]))); |
|
35 |
|
36 %% test/octave.test/set/union-2.m |
|
37 %!assert(all (all (union ([1; 2; 4], [2, 3, 5]) == [1, 2, 3, 4, 5]))); |
|
38 |
|
39 %% test/octave.test/set/union-3.m |
|
40 %!assert(all (all (union ([1, 2, 3], [5; 7; 9]) == [1, 2, 3, 5, 7, 9]))); |
|
41 |
|
42 %% test/octave.test/set/union-4.m |
|
43 %!error union (1); |
|
44 |
|
45 %% test/octave.test/set/union-5.m |
|
46 %!error union (1, 2, 3); |
|
47 |
|
48 %% test/octave.test/set/intersection-1.m |
|
49 %!assert(all (all (intersection ([1, 2, 3], [2, 3, 5]) == [2, 3]))); |
|
50 |
|
51 %% test/octave.test/set/intersection-2.m |
|
52 %!assert(all (all (intersection ([1; 2; 3], [2, 3, 5]) == [2, 3]))); |
|
53 |
|
54 %% test/octave.test/set/intersection-3.m |
|
55 %!assert(isempty (intersection ([1, 2, 3], [4; 5; 6]))); |
|
56 |
|
57 %% test/octave.test/set/intersection-4.m |
|
58 %!error intersection (1); |
|
59 |
|
60 %% test/octave.test/set/intersection-5.m |
|
61 %!error intersection (1, 2, 5); |
|
62 |
|
63 %% test/octave.test/set/complement-1.m |
|
64 %!assert(all (all (complement ([1, 2, 3], [3; 4; 5; 6]) == [4, 5, 6]))); |
|
65 |
|
66 %% test/octave.test/set/complement-2.m |
|
67 %!assert(all (all (complement ([1, 2, 3], [3, 4, 5, 6]) == [4, 5, 6]))); |
|
68 |
|
69 %% test/octave.test/set/complement-3.m |
|
70 %!assert(isempty (complement ([1, 2, 3], [3, 2, 1]))); |
|
71 |
|
72 %% test/octave.test/set/complement-4.m |
|
73 %!error complement (1); |
|
74 |
|
75 %% test/octave.test/set/complement-5.m |
|
76 %!error complement (1, 2, 3); |
|
77 |