Skip to content

Commit 658c960

Browse files
committed
Add tests for RT #118029
1 parent 85396dd commit 658c960

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

S02-types/declare.t

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use Test;
44
# see if you can declare the various built-in types
55
# a broad but not in depth test of the existence of various types
66

7-
plan 78;
7+
plan 79;
88

99
# L<S02/"Built-in Type Conventions"/"Built-in object types start with an uppercase letter">
1010

@@ -92,6 +92,11 @@ plan 78;
9292
isa_ok($gunka, Routine);
9393
}
9494

95+
{
96+
my Stash $igeda;
97+
isa_ok($igeda, Stash);
98+
}
99+
95100
#?rakudo skip 'Module NYI'
96101
#?niecza skip 'Module NYI'
97102
{

S02-types/stash.t

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
use v6;
2+
3+
use Test;
4+
5+
plan 1;
6+
7+
#L<S02/Mutable Types>
8+
9+
# RT #118029
10+
{
11+
sub S (Stash $s) { $s.WHAT.perl };
12+
is S(Stash.new), 'Stash', 'Stash.new creates Stash, not a Hash';
13+
}
14+
15+
# vim: ft=perl6

0 commit comments

Comments
 (0)