comparison test/parser.tst @ 17624:b92242ad316f

parser.tst: Remove comments about bug #33304 which has been fixed. * test/parser.tst: Remove comments about bug #33304 which has been fixed.
author Rik <rik@octave.org>
date Thu, 10 Oct 2013 14:52:47 -0700
parents fd712a12fe53
children d63878346099
comparison
equal deleted inserted replaced
17623:7b305b36b87e 17624:b92242ad316f
206 %! assert (b(a. b1 + 1), 4); 206 %! assert (b(a. b1 + 1), 4);
207 %! assert ([2 3].^2', [4; 9]); 207 %! assert ([2 3].^2', [4; 9]);
208 ## Level 12 (postfix increment and decrement) 208 ## Level 12 (postfix increment and decrement)
209 ## No tests possible since a++-- is not valid 209 ## No tests possible since a++-- is not valid
210 ## Level 11 (transpose and exponentiation) 210 ## Level 11 (transpose and exponentiation)
211 ## Note: Exponentiation should be left-to-right, but Octave does right-to-left.
212 ## See bug #33304.
213 %!test 211 %!test
214 %! assert (2^3**2, 64); 212 %! assert (2^3**2, 64);
215 %! assert ([2 3].^2.', [4;9]); 213 %! assert ([2 3].^2.', [4;9]);
216 %! assert ([2 3].'.^2, [4;9]); 214 %! assert ([2 3].'.^2, [4;9]);
217 %! assert (3*4i'.', 0 - 12i); 215 %! assert (3*4i'.', 0 - 12i);
218 %! assert (3*4i.'.', 0 + 12i); 216 %! assert (3*4i.'.', 0 + 12i);
219 %! assert (2^-4^3, (1/16)^3); 217 %! assert (2^-4^3, (1/16)^3);
220 %! assert (2^+4^3, 16^3); 218 %! assert (2^+4^3, 16^3);
221 %! assert (2^~0^2, 4); 219 %! assert (2^~0^2, 4);
222
223 ## Note: Exponentiation should be left-to-right, but Octave does right-to-left.
224 ## See bug #33304.
225 220
226 ## Level 10 (unary plus/minus, prefix increment/decrement, not) 221 ## Level 10 (unary plus/minus, prefix increment/decrement, not)
227 %!test 222 %!test
228 %! assert (+-+1, -1); 223 %! assert (+-+1, -1);
229 %! a = -1; 224 %! a = -1;
285 ## expressions must remain on one line for this test to work as 280 ## expressions must remain on one line for this test to work as
286 ## intended. 281 ## intended.
287 %!test 282 %!test
288 %! xyz(1) = 1; xyz /= 1; 283 %! xyz(1) = 1; xyz /= 1;
289 %! assert (xyz, 1); 284 %! assert (xyz, 1);
285