Changeset 8700
- Timestamp:
- 01/16/06 13:14:46 (3 years ago)
- Files:
-
- 1 modified
-
t/operators/inc.t (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
t/operators/inc.t
r6031 r8700 76 76 77 77 $a = undef; 78 $a++; 79 is($a, 0, 'undef++ == 0',:todo); 78 is($a++, 0, 'undef++ == 0'); 80 79 81 80 $a = undef; 82 $a--; 83 is($a, undef, 'undef-- is undefined',:todo); 81 is($a--, undef, 'undef-- is undefined'); 84 82 85 83 $a = 'x'; … … 114 112 my @array = (42); 115 113 116 is( @array[+foo()]++, 43, "++ evaluates the expression to increment only once (1)", :todo<bug>);117 is($was_in_foo, 1, "++ evaluates the expression to increment only once (2)" , :todo<bug>);114 is(++@array[+foo()], 43, "++ evaluates the expression to increment only once (1)"); 115 is($was_in_foo, 1, "++ evaluates the expression to increment only once (2)"); 118 116 }
