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/eval/eval-1.m |
5667
|
22 %!#test |
5590
|
23 %! x = 1; |
|
24 %! assert(eval ("x"),1); |
|
25 |
|
26 %% test/octave.test/eval/eval-2.m |
|
27 %!test |
|
28 %! x = 1; |
|
29 %! assert(eval ("x;")); |
|
30 |
|
31 %% test/octave.test/eval/eval-3.m |
|
32 %!test |
5667
|
33 %! x = 1; |
5590
|
34 %! assert(eval ("x;"),1); |
|
35 |
5775
|
36 %% FIXME |
5590
|
37 %% Disable this test as adding the ";" is redundant with eval-1 and |
|
38 %% in any case is a syntax error with assert |
|
39 %% test/octave.test/eval/eval-4.m |
|
40 %!#test |
|
41 %! x = 1; |
|
42 %! assert(eval ("x");,1); |
|
43 |
|
44 %% test/octave.test/eval/eval-5.m |
|
45 %!test |
|
46 %! eval ("flipud = 2;"); |
|
47 %! assert(flipud,2); |
|
48 |
|
49 %% test/octave.test/eval/eval-6.m |
|
50 %!function y = f () |
|
51 %! eval ("flipud = 2;"); |
|
52 %! y = flipud; |
|
53 %!test |
|
54 %! assert(f,2); |
|
55 |
|
56 %% test/octave.test/eval/eval-7.m |
5667
|
57 %!#test |
5590
|
58 %! eval ("x = 1"); |
|
59 %! assert(x,1); |
|
60 |
|
61 %% test/octave.test/eval/eval-8.m |
|
62 %!test |
|
63 %! eval ("x = 1;") |
|
64 %! assert(x,1); |
|
65 |
|
66 %% test/octave.test/eval/eval-9.m |
|
67 %!test |
|
68 %! eval ("x = 1;"); |
|
69 %! assert(x,1); |
|
70 |
|
71 %% test/octave.test/eval/eval-10.m |
5667
|
72 %!#test |
5590
|
73 %! eval ("x = 1") |
|
74 %! assert(x,1); |
|
75 |
|
76 %% test/octave.test/eval/eval-11.m |
|
77 %!test |
|
78 %! x = 1; |
|
79 %! y = eval ("x"); |
|
80 %! assert(y,1); |
|
81 |
|
82 %% test/octave.test/eval/eval-12.m |
|
83 %!test |
|
84 %! x = 1; |
|
85 %! y = eval ("x;"); |
|
86 %! assert(y,1); |
|
87 |
|
88 %% test/octave.test/eval/eval-13.m |
|
89 %!test |
|
90 %! x = 1; |
|
91 %! y = eval ("x;"); |
|
92 %! assert(y,1); |
|
93 |
|
94 %% test/octave.test/eval/eval-14.m |
|
95 %!test |
|
96 %! x = 1; |
|
97 %! y = eval ("x"); |
|
98 %! assert(y,1); |
|
99 |