Skip to content

Commit 686e6a6

Browse files
committed
[v6.d REVIEW] Relocate/expand tests
- These are smileys, not coercers - Add tests for :D smileys too Orig: e7fb85a
1 parent 933ad82 commit 686e6a6

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

S06-parameters/smiley.t

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use v6;
22
use Test;
33

4-
plan 35;
4+
plan 39;
55

66
is { sub a(Int $a) { $a }; a Int }(), Int, 'can Int take an Int:U';
77
is { sub a(Int $a) { $a }; a 42 }(), 42, 'can Int take an Int:D';
@@ -87,4 +87,10 @@ throws-like 'use parameters :foo',
8787
name => 'foo',
8888
'does use parameters :foo fail';
8989

90+
# RT #127841
91+
is Int:U .gist, '(Int:U)', '.gist on :U smileys';
92+
is Proc::Async:U.gist, '(Async:U)', '.gist on :U smileys uses shortname';
93+
is Int:D .gist, '(Int:D)', '.gist on :D smileys';
94+
is Proc::Async:D.gist, '(Async:D)', '.gist on :D smileys uses shortname';
95+
9096
# vim: ft=perl6

S12-coercion/coercion-types.t

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use v6;
22
use Test;
3-
plan 22;
3+
plan 20;
44

55
# coercion types in parameter lists
66
{
@@ -96,10 +96,6 @@ class NastyChild is Parent { };
9696
isa-ok Co.invocant, SubCo, 'Can coerce invocant to subclass';
9797
}
9898

99-
# RT #127841
100-
is Int:U.gist, '(Int:U)', '.gist on coercion types';
101-
is Proc::Async:U.gist, '(Async:U)', '.gist on coercion types uses shortname';
102-
10399
is Str(Any).gist, '(Str(Any))', 'Can gist a coercion type';
104100

105101
# RT #131611

0 commit comments

Comments
 (0)