Permalink
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (12 sloc) 305 Bytes
use v6;
use Test;
plan 4;
{
nok 'ab' ~~ .uc, 'smart-match happens after method calls on $_ 1';
ok 'AA' ~~ .uc, 'smart-match happens after method calls on $_ 2';
}
{
nok 'ab' ~~ .substr(1), 'method call with args 1';
ok 'ab' ~~ .substr(0), 'method call with args 2';
}
# vim: ft=perl6