comparison test/parser.tst @ 17420:577a19afdaf5

maint: Backed out changeset f81401b6b1f7. * test/parser.tst: bug #33304 should remain an error until it is fixed.
author Rik <rik@octave.org>
date Sat, 14 Sep 2013 17:07:05 -0700
parents f81401b6b1f7
children fd712a12fe53
comparison
equal deleted inserted replaced
17419:f81401b6b1f7 17420:577a19afdaf5
193 %! b = 1:5; 193 %! b = 1:5;
194 %! assert (b(a. b1 + 1), 4); 194 %! assert (b(a. b1 + 1), 4);
195 %! assert ([2 3].^2', [4; 9]); 195 %! assert ([2 3].^2', [4; 9]);
196 ## Level 12 (postfix increment and decrement) 196 ## Level 12 (postfix increment and decrement)
197 ## No tests possible since a++-- is not valid 197 ## No tests possible since a++-- is not valid
198
199 ## Level 11 (transpose and exponentiation) 198 ## Level 11 (transpose and exponentiation)
199 ## Note: Exponentiation should be left-to-right, but Octave does right-to-left.
200 ## See bug #33304.
200 %!test 201 %!test
201 %! assert (2^3**2, 64); 202 %! assert (2^3**2, 64);
202 %! assert ([2 3].^2.', [4;9]); 203 %! assert ([2 3].^2.', [4;9]);
203 %! assert ([2 3].'.^2, [4;9]); 204 %! assert ([2 3].'.^2, [4;9]);
204 %! assert (3*4i'.', 0 - 12i); 205 %! assert (3*4i'.', 0 - 12i);
205 %! assert (3*4i.'.', 0 + 12i); 206 %! assert (3*4i.'.', 0 + 12i);
206
207 ## Note: Exponentiation should be left-to-right, but Octave does right-to-left.
208 ## See bug #33304.
209 %!xtest
210 %! assert (2^-4^3, (1/16)^3); 207 %! assert (2^-4^3, (1/16)^3);
211 %! assert (2^+4^3, 16^3); 208 %! assert (2^+4^3, 16^3);
212 %! assert (2^~0^2, 4); 209 %! assert (2^~0^2, 4);
210
211 ## Note: Exponentiation should be left-to-right, but Octave does right-to-left.
212 ## See bug #33304.
213 213
214 ## Level 10 (unary plus/minus, prefix increment/decrement, not) 214 ## Level 10 (unary plus/minus, prefix increment/decrement, not)
215 %!test 215 %!test
216 %! assert (+-+1, -1); 216 %! assert (+-+1, -1);
217 %! a = -1; 217 %! a = -1;