Skip to content

Commit 7adcee8

Browse files
committed
Merge branch 'master' of github.com:perl6/roast
2 parents 535c5e1 + 6c6952b commit 7adcee8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

S02-literals/fmt-interpolation.t

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ is(
2424
'ord of $x is 65',
2525
'normal scalar variable builtin call as a method'
2626
);
27+
#?niecza todo 'fmt and scalar interpolation live'
2728
lives_ok(sub { $y = "ord of \$x is $x.ord.fmt('%d')" },
2829
'fmt and scalar interpolation live');
30+
#?niecza todo 'no output'
2931
is($y, 'ord of $x is 65', 'fmt and scalar interpolation behave well');
3032

3133
is("\$x is {$x}", '$x is A', 'normal scalar variable interpolation');
@@ -34,15 +36,19 @@ is(
3436
'ord of $x is 65',
3537
'normal scalar variable builtin call as a method'
3638
);
39+
#?niecza todo 'fmt and code interpolation live'
3740
lives_ok(sub { $y = "hex-formatted ord of \$x is {$x.ord().fmt('%x')}" },
3841
'fmt and code interpolation live');
42+
#?niecza todo 'fmt and code interpolation behave well'
3943
is(
4044
$y,
4145
'hex-formatted ord of $x is 41',
4246
'fmt and code interpolation behave well'
4347
);
4448

4549
# These tests actually exercise what's a bug in eval() IMHO -- polettix
50+
#?niecza skip 'Unable to resolve method fmt in class Int'
51+
{
4652
my $z;
4753
my $expected = 'hex-formatted ord of $x is 41';
4854
is(
@@ -58,6 +64,7 @@ is(
5864
);
5965
ok($z, 'eval was *really* ok');
6066
is($y, $expected, 'fmt and code interpolation behave well');
67+
}
6168

6269

6370
# vim: ft=perl6

0 commit comments

Comments
 (0)