Patrick R. Michaud wrote: > Looking at t/operators/ternary.t... > > At the bottom of the file, there is a test that reads: > > { > # This parses incorrectly because it's parsed as Bool::True(!! > Bool::False). > my $foo = eval q[ 1 ?? Bool::True !! Bool::False ]; > is($foo, Bool::True, "a statement with both ??!! and :: in it did > compile"), :todo<bug>; > } > > > I'm not entirely certain what this test is intending to test. > Do we need it? Does it perhaps belong somewhere else?
We had a bit more discussion about that on #perl6 (see <http://moritz.faui2k3.org/irclog/out.pl?channel=perl6;date=2007-06-20#id_l962>) Basically I think that - we need the test somewhere and - it is not a test that one would usually write unless he/she found a regression in one implementation. Therefore it would be good to have them somewhere separately, in an implementation-specific manner. That would reduce the "wtf?"-effect while reading the official tests. Of course all other implementations have to pass them as well... I'd suggest t/regression/$implementation/ in the pugs repository as the new location for such tests. I'd any comments on that. Moritz -- Moritz Lenz http://moritz.faui2k3.org/ | http://perl-6.de/
signature.asc
Description: OpenPGP digital signature