Skip to content

Commit 5cf0975

Browse files
committed
Test that we are doing the right thing with attributes
1 parent b57a2db commit 5cf0975

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

t/020-basic.t

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,14 @@ my $h = from-json($json);
2828
is $h<version>, "0.0.1", "version is right";
2929
is $h<perl>, "6", "perl is right";
3030

31+
for $obj.^attributes -> $attr {
32+
if $attr.has-accessor {
33+
34+
ok $attr.^does(META6::MetaAttribute), "attribute { $attr.name } has the trait";
35+
36+
}
37+
}
38+
3139

3240
done-testing;
3341
# vim: expandtab shiftwidth=4 ft=perl6

0 commit comments

Comments
 (0)