Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add test for Buf.EVAL
  • Loading branch information
lizmat committed Jul 9, 2014
1 parent 4af01d7 commit 320794d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions S29-context/eval.t
@@ -1,6 +1,6 @@
use v6;
use Test;
plan 20;
plan 21;

# L<S29/Context/"=item EVAL">

Expand Down Expand Up @@ -62,7 +62,10 @@ dies_ok({EVAL {; 42} }, 'block EVAL is gone');
#?rakudo skip 'EVAL(Buf) RT #122256'
#?niecza skip 'Unable to resolve method encode in class Str'
#?pugs skip 'encode'
is EVAL("'møp'".encode('UTF-8')), 'møp', 'EVAL(Buf)';
{
is EVAL("'møp'".encode('UTF-8')), 'møp', 'EVAL(Buf)';
is "'møp'".encode('UTF-8').EVAL, 'møp', 'Buf.EVAL';
}

{
is EVAL(88), 88, 'EVAL of non-string works';
Expand Down

0 comments on commit 320794d

Please sign in to comment.