File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 24
24
' ord of $x is 65' ,
25
25
' normal scalar variable builtin call as a method'
26
26
);
27
+ # ?niecza todo 'fmt and scalar interpolation live'
27
28
lives_ok(sub { $ y = " ord of \$x is $ x .ord.fmt('% d ')" },
28
29
' fmt and scalar interpolation live' );
30
+ # ?niecza todo 'no output'
29
31
is ($ y , ' ord of $x is 65' , ' fmt and scalar interpolation behave well' );
30
32
31
33
is (" \$x is { $ x } " , ' $x is A' , ' normal scalar variable interpolation' );
34
36
' ord of $x is 65' ,
35
37
' normal scalar variable builtin call as a method'
36
38
);
39
+ # ?niecza todo 'fmt and code interpolation live'
37
40
lives_ok(sub { $ y = " hex-formatted ord of \$x is { $ x . ord (). fmt (' %x' )} " },
38
41
' fmt and code interpolation live' );
42
+ # ?niecza todo 'fmt and code interpolation behave well'
39
43
is (
40
44
$ y ,
41
45
' hex-formatted ord of $x is 41' ,
42
46
' fmt and code interpolation behave well'
43
47
);
44
48
45
49
# These tests actually exercise what's a bug in eval() IMHO -- polettix
50
+ # ?niecza skip 'Unable to resolve method fmt in class Int'
51
+ {
46
52
my $ z ;
47
53
my $ expected = ' hex-formatted ord of $x is 41' ;
48
54
is (
58
64
);
59
65
ok ($ z , ' eval was *really* ok' );
60
66
is ($ y , $ expected , ' fmt and code interpolation behave well' );
67
+ }
61
68
62
69
63
70
# vim: ft=perl6
You can’t perform that action at this time.
0 commit comments