9245
|
1 ## Copyright (C) 2006, 2007, 2009 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 %% test/octave.test/contin/contin-1.m |
|
20 %!test |
|
21 %! x = [1,2]; |
|
22 %! a = 1; |
|
23 %! b = 2; |
|
24 %! y = [a... # comments here ok |
|
25 %! b]; |
|
26 %! assert(all (y == x)); |
|
27 |
|
28 %% test/octave.test/contin/contin-2.m |
|
29 %!test |
|
30 %! x = [1,2]; |
|
31 %! a = 1; |
|
32 %! b = 2; |
|
33 %! y = [a... # comments here ok |
|
34 %! b]; |
|
35 %! assert(all (y == x)); |
|
36 |
|
37 %% test/octave.test/contin/contin-3.m |
|
38 %!test |
|
39 %! x = [1,2]; |
|
40 %! a = 1; |
|
41 %! b = 2; |
|
42 %! y = [a... # comments here ok |
|
43 %! b]; |
|
44 %! assert(all (y == x)); |
|
45 |
|
46 %% test/octave.test/contin/contin-4.m |
|
47 %!test |
|
48 %! x = [1,2]; |
|
49 %! a = 1; |
|
50 %! b = 2; |
|
51 %! y = [a... # comments ok here |
|
52 %! b]; |
|
53 %! assert(all (y == x)); |
|
54 |
|
55 %% test/octave.test/contin/contin-5.m |
|
56 %!test |
|
57 %! x = [1,2]; |
|
58 %! a = 1; |
|
59 %! b = 2; |
|
60 %! y = [a... # comments here ok |
|
61 %! b]; |
|
62 %! assert(all (y == x)); |
|
63 |
|
64 %% test/octave.test/contin/contin-6.m |
|
65 %!test |
|
66 %! x = [1,2]; |
|
67 %! a = 1; |
|
68 %! b = 2; |
|
69 %! y = [a... # comments here ok |
|
70 %! b]; |
|
71 %! assert(all (y == x)); |
|
72 |
|
73 %% test/octave.test/contin/contin-7.m |
|
74 %!test |
|
75 %! x = [1;2]; |
|
76 %! a = 1; |
|
77 %! b = 2; |
|
78 %! y = [a... # comments here ok |
|
79 %! ;\ |
|
80 %! |
|
81 %! b]; |
|
82 %! assert(all (y == x)); |
|
83 |
|
84 %% test/octave.test/contin/contin-8.m |
|
85 %!test |
|
86 %! x = [1;2]; |
|
87 %! a = 1; |
|
88 %! b = 2; |
|
89 %! y = [a... # comments here ok |
|
90 %! ;\ |
|
91 %! |
|
92 %! b]; |
|
93 %! assert(all (y == x)); |
|
94 |
|
95 %% test/octave.test/contin/contin-9.m |
|
96 %!test |
|
97 %! x = [1;2]; |
|
98 %! a = 1; |
|
99 %! b = 2; |
|
100 %! y = [a... # comments here ok |
|
101 %! ;\ |
|
102 %! |
|
103 %! b]; |
|
104 %! assert(all (y == x)); |
|
105 |
|
106 %% test/octave.test/contin/contin-10.m |
|
107 %!assert(1 + ... |
|
108 %! 2 - \# comments here ok |
|
109 %! 3 / ... # comments here ok |
|
110 %! -1,6); |
|
111 |
|
112 %% test/octave.test/contin/contin-11.m |
|
113 %!function y = f (a,... |
|
114 %! b, ... |
|
115 %! c, ... % comments ok |
|
116 %! x, # continuation characters not required in parens |
|
117 %! y, \# but they should work too. |
|
118 %! z) |
|
119 %! |
|
120 %! y = 1; |
|
121 %!test |
|
122 %! assert(f (),1); |
|
123 |
|
124 %% test/octave.test/contin/contin-12.m |
|
125 %!test |
|
126 %!assert(1 == 1 |
|
127 %! && 2 == 2 |
|
128 %! || 3 == 5); |
|
129 |
|
130 %% test/octave.test/contin/contin-13.m |
|
131 %!test |
|
132 %! x = [1, ... |
|
133 %! |
|
134 %! ... |
|
135 %! |
|
136 %! 2]; |
|
137 %! y = [1;2]; |
|
138 %! assert(all (y == x)); |
|
139 |
|
140 %% test/octave.test/contin/contin-14.m |
|
141 %!test |
|
142 %! x = [1, ... |
|
143 %! |
|
144 %! ... |
|
145 %! |
|
146 %! 2]; |
|
147 %! y = [1;2]; |
|
148 %! assert(all (y == x)); |
|
149 |
|
150 %% test/octave.test/contin/contin-15.m |
|
151 %!test |
|
152 %! x = [1,... |
|
153 %! 2]; |
|
154 %! y = [1,2]; |
|
155 %! assert(all (y == x)); |
|
156 |
|
157 %% test/octave.test/contin/contin-16.m |
|
158 %!test |
|
159 %! x = [ 1 , ... |
|
160 %! 2]; |
|
161 %! y = [1,2]; |
|
162 %! assert(all (y == x)); |
|
163 |