22
22
# to define the same inside evaled strings:
23
23
role Foo::Bar [::T] {}
24
24
class Ber::Meow {}
25
- my \ClassDefs := 「 my role Foo ::Bar2[::T] {}; my class Ber ::Meow2 {}; 」 ;
25
+ my \ClassDefs := 「 my role Foo2 ::Bar2[::T] {}; my class Ber2 ::Meow2 {}; 」 ;
26
26
27
27
# #
28
28
# # Sigilless
@@ -90,7 +90,7 @@ subtest 'my | typed | sigilless' => {
90
90
91
91
my Foo::Bar[Ber::Meow] constant mts6 = Foo::Bar[Ber::Meow]. new ;
92
92
is-deeply mts6, Foo::Bar[Ber::Meow]. new , ' parametarized type with `::` in name' ;
93
- throws-like ClassDefs ~ 「 my Foo ::Bar2[Ber ::Meow2] constant mts7 = 42」 ,
93
+ throws-like ClassDefs ~ 「 my Foo2 ::Bar2[Ber2 ::Meow2] constant mts7 = 42」 ,
94
94
X::TypeCheck , ' parametarized type with `::` in name (failure mode)' ;
95
95
}
96
96
@@ -115,7 +115,7 @@ subtest 'our | typed | sigilless' => {
115
115
our Foo::Bar[Ber::Meow] constant ots6 = Foo::Bar[Ber::Meow]. new ;
116
116
is-deeply ots6, Foo::Bar[Ber::Meow]. new ,
117
117
' parametarized type with `::` in name' ;
118
- throws-like ClassDefs ~ 「 our Foo ::Bar2[Ber ::Meow2] constant ots7 = 42」 ,
118
+ throws-like ClassDefs ~ 「 our Foo2 ::Bar2[Ber2 ::Meow2] constant ots7 = 42」 ,
119
119
X::TypeCheck , ' parametarized type with `::` in name (failure mode)' ;
120
120
}
121
121
@@ -186,7 +186,7 @@ subtest 'my | typed | backslashed sigilless' => {
186
186
my Foo::Bar[Ber::Meow] constant \mtbs6 = Foo::Bar[Ber::Meow]. new ;
187
187
is-deeply mtbs6, Foo::Bar[Ber::Meow]. new ,
188
188
' parametarized type with `::` in name' ;
189
- throws-like ClassDefs ~ 「 my Foo ::Bar2[Ber ::Meow2] constant mtbs7 = 42」 ,
189
+ throws-like ClassDefs ~ 「 my Foo2 ::Bar2[Ber2 ::Meow2] constant mtbs7 = 42」 ,
190
190
X::TypeCheck , ' parametarized type with `::` in name (failure mode)' ;
191
191
}
192
192
@@ -210,7 +210,7 @@ subtest 'our | typed | backslashed sigilless' => {
210
210
211
211
our Foo::Bar[Ber::Meow] constant \otbs6 = Foo::Bar[Ber::Meow]. new ;
212
212
is-deeply otbs6, Foo::Bar[Ber::Meow]. new , ' parametarized type with `::` in name' ;
213
- throws-like ClassDefs ~ 「 our Foo ::Bar2[Ber ::Meow2] constant otbs7 = 42」 , X::TypeCheck ,
213
+ throws-like ClassDefs ~ 「 our Foo2 ::Bar2[Ber2 ::Meow2] constant otbs7 = 42」 , X::TypeCheck ,
214
214
' parametarized type with `::` in name (failure mode)' ;
215
215
}
216
216
@@ -281,7 +281,7 @@ subtest 'my | typed | $-sigilled' => {
281
281
my Foo::Bar[Ber::Meow] constant $ mtss6 = Foo::Bar[Ber::Meow]. new ;
282
282
is-deeply $ mtss6 , Foo::Bar[Ber::Meow]. new ,
283
283
' parametarized type with `::` in name' ;
284
- throws-like ClassDefs ~ 「 my Foo ::Bar2[Ber ::Meow2] constant $mtss7 = 42」 ,
284
+ throws-like ClassDefs ~ 「 my Foo2 ::Bar2[Ber2 ::Meow2] constant $mtss7 = 42」 ,
285
285
X::TypeCheck , ' parametarized type with `::` in name (failure mode)' ;
286
286
}
287
287
@@ -306,7 +306,7 @@ subtest 'our | typed | $-sigilled' => {
306
306
our Foo::Bar[Ber::Meow] constant $ otss6 = Foo::Bar[Ber::Meow]. new ;
307
307
is-deeply $ otss6 , Foo::Bar[Ber::Meow]. new ,
308
308
' parametarized type with `::` in name' ;
309
- throws-like ClassDefs ~ 「 our Foo ::Bar2[Ber ::Meow2] constant $otss7 = 42」 ,
309
+ throws-like ClassDefs ~ 「 our Foo2 ::Bar2[Ber2 ::Meow2] constant $otss7 = 42」 ,
310
310
X::TypeCheck , ' parametarized type with `::` in name (failure mode)' ;
311
311
}
312
312
@@ -469,7 +469,7 @@ subtest 'my | typed | @-sigilled' => {
469
469
X::ParametricConstant , ' list' ;
470
470
throws-like 「 my IO::Path constant @mtas5 = 42」 , X::ParametricConstant ,
471
471
' type with `::` in name' ;
472
- throws-like ClassDefs ~ 「 my Foo ::Bar2[Ber ::Meow2] constant @mtas7 = 42」 ,
472
+ throws-like ClassDefs ~ 「 my Foo2 ::Bar2[Ber2 ::Meow2] constant @mtas7 = 42」 ,
473
473
X::ParametricConstant , ' parametarized type with `::` in name' ;
474
474
}
475
475
@@ -481,7 +481,7 @@ subtest 'our | typed | @-sigilled' => {
481
481
X::ParametricConstant , ' list' ;
482
482
throws-like 「 our IO::Path constant @otas5 = 42」 , X::ParametricConstant ,
483
483
' type with `::` in name' ;
484
- throws-like ClassDefs ~ 「 our Foo ::Bar2[Ber ::Meow2] constant @otas7 = 42」 ,
484
+ throws-like ClassDefs ~ 「 our Foo2 ::Bar2[Ber2 ::Meow2] constant @otas7 = 42」 ,
485
485
X::ParametricConstant , ' parametarized type with `::` in name' ;
486
486
}
487
487
@@ -514,7 +514,7 @@ subtest 'implied | implied | %-sigilled' => {
514
514
constant % iihs7 = : 42 foo;
515
515
is-deeply % iihs7 , : 42 foo. Pair , ' Pair remains same' ;
516
516
constant % iihs8 = bag(<a a a b c >);
517
- is-deeply % iihs8 , set (<a a a b c >), ' Bag remains same' ;
517
+ is-deeply % iihs8 , bag (<a a a b c >), ' Bag remains same' ;
518
518
519
519
{ # add a scope to check scope declarator works right
520
520
constant % iihs9 = do { % (: foo, : bar) };
@@ -577,7 +577,7 @@ subtest 'my | implied | %-sigilled' => {
577
577
my constant % mihs7 = : 42 foo;
578
578
is-deeply % mihs7 , : 42 foo. Pair , ' Pair remains same' ;
579
579
my constant % mihs8 = bag(<a a a b c >);
580
- is-deeply % mihs8 , set (<a a a b c >), ' Bag remains same' ;
580
+ is-deeply % mihs8 , bag (<a a a b c >), ' Bag remains same' ;
581
581
582
582
{ # add a scope to check scope declarator works right
583
583
my constant % mihs9 = do { % (: foo, : bar) };
@@ -640,7 +640,7 @@ subtest 'our | implied | %-sigilled' => {
640
640
our constant % oihs7 = : 42 foo;
641
641
is-deeply % oihs7 , : 42 foo. Pair , ' Pair remains same' ;
642
642
our constant % oihs8 = bag(<a a a b c >);
643
- is-deeply % oihs8 , set (<a a a b c >), ' Bag remains same' ;
643
+ is-deeply % oihs8 , bag (<a a a b c >), ' Bag remains same' ;
644
644
645
645
{ # add a scope to check scope declarator works right
646
646
our constant % oihs9 = do { % (: foo, : bar) };
@@ -684,7 +684,7 @@ subtest 'my | typed | %-sigilled' => {
684
684
X::ParametricConstant , ' simple value' ;
685
685
throws-like 「 my IO::Path constant %mths2 = 42」 , X::ParametricConstant ,
686
686
' type with `::` in name' ;
687
- throws-like ClassDefs ~ 「 my Foo ::Bar2[Ber ::Meow2] constant %mths3 = 42」 ,
687
+ throws-like ClassDefs ~ 「 my Foo2 ::Bar2[Ber2 ::Meow2] constant %mths3 = 42」 ,
688
688
X::ParametricConstant , ' parametarized type with `::` in name' ;
689
689
}
690
690
@@ -694,7 +694,7 @@ subtest 'our | typed | %-sigilled' => {
694
694
X::ParametricConstant , ' statement' ;
695
695
throws-like 「 our IO::Path constant %oths2 = 42」 , X::ParametricConstant ,
696
696
' type with `::` in name' ;
697
- throws-like ClassDefs ~ 「 our Foo ::Bar2[Ber ::Meow2] constant %oths3 = 42」 ,
697
+ throws-like ClassDefs ~ 「 our Foo2 ::Bar2[Ber2 ::Meow2] constant %oths3 = 42」 ,
698
698
X::ParametricConstant , ' parametarized type with `::` in name' ;
699
699
}
700
700
0 commit comments