Skip to content

Commit fd20de7

Browse files
committed
1 parent 5077217 commit fd20de7

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

S04-declarations/constant-6.d.t

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ diag 「
2222
# to define the same inside evaled strings:
2323
role Foo::Bar[::T] {}
2424
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 {}; ;
2626

2727
##
2828
## Sigilless
@@ -90,7 +90,7 @@ subtest 'my | typed | sigilless' => {
9090

9191
my Foo::Bar[Ber::Meow] constant mts6 = Foo::Bar[Ber::Meow].new;
9292
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,
9494
X::TypeCheck, 'parametarized type with `::` in name (failure mode)';
9595
}
9696

@@ -115,7 +115,7 @@ subtest 'our | typed | sigilless' => {
115115
our Foo::Bar[Ber::Meow] constant ots6 = Foo::Bar[Ber::Meow].new;
116116
is-deeply ots6, Foo::Bar[Ber::Meow].new,
117117
'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,
119119
X::TypeCheck, 'parametarized type with `::` in name (failure mode)';
120120
}
121121

@@ -186,7 +186,7 @@ subtest 'my | typed | backslashed sigilless' => {
186186
my Foo::Bar[Ber::Meow] constant \mtbs6 = Foo::Bar[Ber::Meow].new;
187187
is-deeply mtbs6, Foo::Bar[Ber::Meow].new,
188188
'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,
190190
X::TypeCheck, 'parametarized type with `::` in name (failure mode)';
191191
}
192192

@@ -210,7 +210,7 @@ subtest 'our | typed | backslashed sigilless' => {
210210

211211
our Foo::Bar[Ber::Meow] constant \otbs6 = Foo::Bar[Ber::Meow].new;
212212
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,
214214
'parametarized type with `::` in name (failure mode)';
215215
}
216216

@@ -281,7 +281,7 @@ subtest 'my | typed | $-sigilled' => {
281281
my Foo::Bar[Ber::Meow] constant $mtss6 = Foo::Bar[Ber::Meow].new;
282282
is-deeply $mtss6, Foo::Bar[Ber::Meow].new,
283283
'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,
285285
X::TypeCheck, 'parametarized type with `::` in name (failure mode)';
286286
}
287287

@@ -306,7 +306,7 @@ subtest 'our | typed | $-sigilled' => {
306306
our Foo::Bar[Ber::Meow] constant $otss6 = Foo::Bar[Ber::Meow].new;
307307
is-deeply $otss6, Foo::Bar[Ber::Meow].new,
308308
'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,
310310
X::TypeCheck, 'parametarized type with `::` in name (failure mode)';
311311
}
312312

@@ -469,7 +469,7 @@ subtest 'my | typed | @-sigilled' => {
469469
X::ParametricConstant, 'list';
470470
throws-like my IO::Path constant @mtas5 = 42, X::ParametricConstant,
471471
'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,
473473
X::ParametricConstant, 'parametarized type with `::` in name';
474474
}
475475

@@ -481,7 +481,7 @@ subtest 'our | typed | @-sigilled' => {
481481
X::ParametricConstant, 'list';
482482
throws-like our IO::Path constant @otas5 = 42, X::ParametricConstant,
483483
'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,
485485
X::ParametricConstant, 'parametarized type with `::` in name';
486486
}
487487

@@ -514,7 +514,7 @@ subtest 'implied | implied | %-sigilled' => {
514514
constant %iihs7 = :42foo;
515515
is-deeply %iihs7, :42foo.Pair, 'Pair remains same';
516516
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';
518518

519519
{ # add a scope to check scope declarator works right
520520
constant %iihs9 = do { %(:foo, :bar) };
@@ -577,7 +577,7 @@ subtest 'my | implied | %-sigilled' => {
577577
my constant %mihs7 = :42foo;
578578
is-deeply %mihs7, :42foo.Pair, 'Pair remains same';
579579
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';
581581

582582
{ # add a scope to check scope declarator works right
583583
my constant %mihs9 = do { %(:foo, :bar) };
@@ -640,7 +640,7 @@ subtest 'our | implied | %-sigilled' => {
640640
our constant %oihs7 = :42foo;
641641
is-deeply %oihs7, :42foo.Pair, 'Pair remains same';
642642
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';
644644

645645
{ # add a scope to check scope declarator works right
646646
our constant %oihs9 = do { %(:foo, :bar) };
@@ -684,7 +684,7 @@ subtest 'my | typed | %-sigilled' => {
684684
X::ParametricConstant, 'simple value';
685685
throws-like my IO::Path constant %mths2 = 42, X::ParametricConstant,
686686
'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,
688688
X::ParametricConstant, 'parametarized type with `::` in name';
689689
}
690690

@@ -694,7 +694,7 @@ subtest 'our | typed | %-sigilled' => {
694694
X::ParametricConstant, 'statement';
695695
throws-like our IO::Path constant %oths2 = 42, X::ParametricConstant,
696696
'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,
698698
X::ParametricConstant, 'parametarized type with `::` in name';
699699
}
700700

0 commit comments

Comments
 (0)