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.

To me it tests for a pugs specific parse bug.

> Do we need it?  

I'm sure nobody invented it just for fun, so we probably need it.

> Does it perhaps belong somewhere else?

I don't know.
Somehow it's good to have parse tests in the test file of the
corresponding feature, but I'm not sure if there is a better solution
here...

-- 
Moritz Lenz
http://moritz.faui2k3.org/ |  http://perl-6.de/

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to