On Mon, Jul 06, 2009 at 06:28:27AM +0200, pugs-comm...@feather.perl6.nl wrote:
> +# RT #57336
> +{
> +    # XXX Right message?
> +    my $good_message = q{Lexical 'self' not found};
> +    my $bad_code;
> +
> +    $bad_code = '$.a';
> +    eval $bad_code;
> +    ok $! ~~ Exception, "bad code: '$bad_code'";
> +    is "$!", $good_message, 'good error message';

...I suspect that the spectests should not be checking for
specific error text.  At least I hope that's the case, unless
all implementations are going to standardize error messages.

(I'm fine with us standardizing on exception types, which we
haven't done yet, but requiring specific error messages seems
fragile to me.)

Pm

Reply via email to