Skip to content

Commit bb83c9a

Browse files
committed
more Type() -> (Type) moving
1 parent bebc699 commit bb83c9a

File tree

13 files changed

+20
-20
lines changed

13 files changed

+20
-20
lines changed

S10-packages/basic.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ is Simple::Bar.new.baz, 'hi', 'class test';
2323

2424
#?niecza skip 'AlsoEmpty undeclared (ie no autovivification, I guess)'
2525
{
26-
is AlsoEmpty.gist, 'AlsoEmpty()',
26+
is AlsoEmpty.gist, '(AlsoEmpty)',
2727
'autovivification(?) for nested packages'
2828
}
2929

@@ -224,7 +224,7 @@ eval_dies_ok 'module RT80856 is not_RT80856 {}',
224224

225225
{
226226
isa_ok Int.WHO, Stash, 'SomeType.WHO is a Stash';
227-
is Int.WHO.WHAT.gist, 'Stash()', 'and Stash correctly .gist-ifies';
227+
is Int.WHO.WHAT.gist, '(Stash)', 'and Stash correctly .gist-ifies';
228228
}
229229

230230

S12-class/mro.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ plan 4;
1818
is $x.tracker, 'FDBECA', 'got the right MRO for 6 classes';
1919
# not really spec yet
2020
#?niecza skip '.^mro'
21-
is $x.^mro.gist, 'F() D() B() E() C() A() Any() Mu()',
21+
is $x.^mro.gist, '(F) (D) (B) (E) (C) (A) (Any) (Mu)',
2222
'.^mro';
2323
}
2424

S12-enums/thorough.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Enum tests from L<S12/Enumerations>
1515
# L<S12/Enumerations/keys are specified as a parenthesized list>
1616
enum day <Sun Mon Tue Wed Thu Fri Sat>;
1717

18-
is day.gist, 'day()', 'enum itself stringififes';
18+
is day.gist, '(day)', 'enum itself stringififes';
1919
ok day.WHAT === day, 'enum.WHAT returned a value';
2020
ok day.perl, 'enum.perl returned a value';
2121

S12-introspection/attributes.t

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,21 @@ my @attrs = C.^attributes();
2626
is +@attrs, 3, 'attribute introspection gave correct number of elements';
2727

2828
is @attrs[0].name, '$!c', 'first attribute had correct name';
29-
is @attrs[0].type.gist, 'Mu()', 'first attribute had correct type';
29+
is @attrs[0].type.gist, '(Mu)', 'first attribute had correct type';
3030
is @attrs[0].has-accessor, True, 'first attribute has an accessor';
3131
ok !@attrs[0].build, 'first attribute has no build value';
3232
ok @attrs[0].rw, 'first attribute is rw';
3333
ok !@attrs[0].readonly, 'first attribute is not readonly';
3434

3535
is @attrs[1].name, '$!b', 'second attribute had correct name';
36-
is @attrs[1].type.gist, 'Int()', 'second attribute had correct type';
36+
is @attrs[1].type.gist, '(Int)', 'second attribute had correct type';
3737
is @attrs[1].has-accessor, False, 'second attribute has no accessor';
3838
ok @attrs[1].build ~~ Code, 'second attribute has build block';
3939
is @attrs[1].build().(C, $_), 42,
4040
'second attribute build block gives expected value';
4141

4242
is @attrs[2].name, '$!a', 'third attribute had correct name';
43-
is @attrs[2].type.gist, 'Str()', 'third attribute had correct type';
43+
is @attrs[2].type.gist, '(Str)', 'third attribute had correct type';
4444
is @attrs[2].has-accessor, True, 'third attribute has an accessor';
4545
ok @attrs[2].build ~~ Code, 'third attribute has build block';
4646
is @attrs[2].build().(C, $_), "dnes je horuci a potrebujem pivo",

S14-roles/instantiation.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ role SampleRole {
2525
my $obj2 = SampleRole.new;
2626
ok $obj.WHAT === $obj2.WHAT, "Punned role classes have the same .WHAT";
2727

28-
is $obj.WHAT.gist, 'SampleRole()', '.WHAT as a string gives the name of the role';
28+
is $obj.WHAT.gist, '(SampleRole)', '.WHAT as a string gives the name of the role';
2929
}
3030

3131
role WithAttr {

S14-roles/lexical.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ eval_dies_ok '{ my class R3 {}; R3; }; R3',
2424
method catwalk() { 'ooh pretty!' }
2525
}
2626

27-
is Model.gist, 'Model()', 'lexical role type object stringifies OK';
27+
is Model.gist, '(Model)', 'lexical role type object stringifies OK';
2828
is Model.catwalk, 'ooh pretty!', 'can pun lexical role';
2929

3030
my class SuperModel does Model {

S14-roles/parameterized-basic.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ is(AP_1.new.y, 'b', 'use of type params in attr initialization works after 2n
101101
}
102102
class TTP_1 does TypeParams[Int] { }
103103
class TTP_2 does TypeParams[Str] { }
104-
is(TTP_1.new.x(42), 'got a Int() it was 42', 'type variable in scope and accepts right value');
105-
is(TTP_2.new.x("OH HAI"), 'got a Str() it was OH HAI', 'type variable in scope and accepts right value');
104+
is(TTP_1.new.x(42), 'got a (Int) it was 42', 'type variable in scope and accepts right value');
105+
is(TTP_2.new.x("OH HAI"), 'got a (Str) it was OH HAI', 'type variable in scope and accepts right value');
106106
dies_ok({ TTP_1.new.x("OH HAI") }, 'type constraint with parameterized type enforced');
107107
dies_ok({ TTP_2.new.x(42) }, 'type constraint with parameterized type enforced');
108108
}

S16-io/say-and-ref.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ is_run q{my $a = [1, 2, 3]; print $a},
2323
# RT #80186
2424
is_run q{IO.say},
2525
{
26-
out => "IO()\n";
26+
out => "(IO)\n";
2727
}, 'Can do IO.say';
2828

2929
# vim: ft=perl6

S32-num/stringify.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Complex_str_test (0 + NaN\i), '0+NaN\i';
3939
# for Niecza in the past
4040

4141
#?pugs skip 'gist'
42-
is Complex.gist, 'Complex()', 'Complex.gist';
42+
is Complex.gist, '(Complex)', 'Complex.gist';
4343
#?pugs todo
4444
is Complex.perl, 'Complex', 'Complex.perl';
4545
# XXX Should ~Complex and Complex.Str return something specific? For now
@@ -79,7 +79,7 @@ Rat_str_test 13/39, '1/3';
7979
Rat_str_test (4.5 ** 60), '1797010299914431210413179829509605039731475627537851106401/1152921504606846976';
8080

8181
#?pugs skip '.gist'
82-
is Rat.gist, 'Rat()', 'Rat.gist';
82+
is Rat.gist, '(Rat)', 'Rat.gist';
8383
#?pugs todo
8484
is Rat.perl, 'Rat', 'Rat.perl';
8585
lives_ok { ~Rat }, '~Rat does not die';

integration/advent2009-day01.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ plan(2);
77

88
# say "Hello World";
99

10-
is( (10/7).WHAT.gist, 'Rat()', 'WHAT');
10+
is( (10/7).WHAT.gist, '(Rat)', 'WHAT');
1111

1212
is(([+] (1..999).grep( { $_ % 3 == 0 || $_ % 5 == 0 } )), 233168, 'Project Euler #1');

0 commit comments

Comments
 (0)