Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
more Type() -> (Type) gistification
  • Loading branch information
moritz committed Feb 24, 2013
1 parent cbe2851 commit 4debe16
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions S03-junctions/misc.t
Expand Up @@ -135,10 +135,10 @@ sub jok(Mu $condition, $msg?) { ok ?($condition), $msg };

$j = 1|2;
#?rakudo 2 todo 'lower case junction type'
is(WHAT($j).gist, 'Junction()', 'basic junction type reference test');
is(WHAT($j).gist, '(Junction)', 'basic junction type reference test');

$k=$j;
is(WHAT($k).gist, 'Junction()', 'assignment preserves reference');
is(WHAT($k).gist, '(Junction)', 'assignment preserves reference');
}


Expand Down
8 changes: 4 additions & 4 deletions S05-capture/array-alias.t
Expand Up @@ -68,11 +68,11 @@ is(join("|", @<spaces>), " | |\t", 'Subrule array capture');


ok(" a b\tc" ~~ m/@<chars>=[ (<?spaces>) (\S+)]+/, 'Nested multiple array capture');
is(WHAT($<chars>).gist, "Array()", 'Multiple capture to nested array');
ok($<chars> ~~ Positional, 'Multiple capture to nested array');
ok(@<chars> == 3, 'Multiple capture count');
is(WHAT($<chars>[0]).gist, "Match()", 'Multiple capture to nested AoA[0]');
is(WHAT($<chars>[1]).gist, "Match()", 'Multiple capture to nested AoA[2]');
is(WHAT($<chars>[2]).gist, "Match()", 'Multiple capture to nested AoA[3]');
is(WHAT($<chars>[0]).gist, "(Match)", 'Multiple capture to nested AoA[0]');
is(WHAT($<chars>[1]).gist, "(Match)", 'Multiple capture to nested AoA[2]');
is(WHAT($<chars>[2]).gist, "(Match)", 'Multiple capture to nested AoA[3]');
is(~$<chars>[0][0], " ", 'Multiple capture value of nested AoA[0][0]');
is(~$<chars>[0][1], "a", 'Multiple capture value of nested AoA[0][1]');
is(~$<chars>[1][0], " ", 'Multiple capture value of nested AoA[1][0]');
Expand Down
4 changes: 2 additions & 2 deletions S06-traits/as.t
Expand Up @@ -11,13 +11,13 @@ Testing coercion types.
=end description

sub t1(Int() $x) {
is($x.WHAT.gist, 'Int()', 'object bound .WHATs to the right thing');
is($x.WHAT.gist, '(Int)', 'object bound .WHATs to the right thing');
is($x, 1, 'object bound was coerced to the right value');
}
t1(4/3);

sub t2(Int(Rat) $x) {
is($x.WHAT.gist, 'Int()', 'object bound .WHATs to the right thing');
is($x.WHAT.gist, '(Int)', 'object bound .WHATs to the right thing');
is($x, 2, 'object bound was coerced to the right value');
}
t2(7/3);
Expand Down
2 changes: 1 addition & 1 deletion S12-class/inheritance.t
Expand Up @@ -130,7 +130,7 @@ eval_lives_ok 'class NotAny is Mu { }; NotAny.new', 'inheritance from Mu works';
ok DirectMu !~~ Any, 'class inheriting from Mu is not Any';
#?niecza skip 'Unable to resolve method parents in class ClassHOW'
#?pugs skip 'No such method in class Class: "&parents"'
ok !( any(DirectMu.^parents).gist eq 'Any()'), 'and Any does not appear in the list of parents either';
ok !( any(DirectMu.^parents).gist eq '(Any)'), 'and Any does not appear in the list of parents either';
}

#?pugs todo
Expand Down
2 changes: 1 addition & 1 deletion S32-num/fatrat.t
Expand Up @@ -233,7 +233,7 @@ ok 16/5R eqv 16/5R, 'infix:<eqv> works with FatRats';

#?rakudo todo 'unknown'
#?pugs skip 'isa_ok'
isa_ok .88888888888R.WHAT.gist, 'FatRat()', 'WHAT works on FatRat created from 11 digit decimal fraction';
isa_ok .88888888888R.WHAT.gist, '(FatRat)', 'WHAT works on FatRat created from 11 digit decimal fraction';

{
my $a += 0.1R;
Expand Down

0 comments on commit 4debe16

Please sign in to comment.