Skip to content

Commit 31ce7c1

Browse files
committed
Tests for RT #77070
1 parent 12b7712 commit 31ce7c1

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

S12-introspection/attributes.t

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

33
use Test;
44

5-
plan 33;
5+
plan 36;
66

77
=begin pod
88
@@ -89,4 +89,14 @@ is @attrs[0].name, '$!c', 'get correct attribute with introspection';
8989
'introspection of type of typed array attribute works (using gist)';
9090
}
9191

92+
# RT #77070
93+
{
94+
# Attributes attributes are sure to actually be BOOTSTRAPATTRs because
95+
# of bootstrapping
96+
my $a = Attribute.^attributes[0];
97+
like $a.gist, /^ <ident>+ \s '$!' <ident>+ $/, '.gist of a BOOTSTRAPATTR is the type and name';
98+
like $a.Str, /^ '$!' <ident>+ $/, '.Str of a BOOTSTRAPATTR is the name';
99+
is $a.perl, 'BOOTSTRAPATTR.new', '.perl of a BOOTSTRAPATTR is the class name ~ ".new"';
100+
}
101+
92102
# vim: ft=perl6

0 commit comments

Comments
 (0)