Skip to content

Commit 1458b47

Browse files
committed
[coverage] cover .gist of Attribute:D
1 parent dbb376e commit 1458b47

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

S12-introspection/attributes.t

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

33
use Test;
44

5-
plan 30;
5+
plan 31;
66

77
=begin pod
88
@@ -72,4 +72,10 @@ is @attrs[0].name, '$!c', 'get correct attribute with introspection';
7272

7373
}
7474

75+
{ # coverage; 2016-09-21
76+
like Attribute.new(:name('test-name'), :type(Int), :package('Foo')).gist,
77+
/'Int' .* 'test-name' | 'test-name' .* 'Int'/,
78+
'.gist of an Attribute includes name and type';
79+
}
80+
7581
# vim: ft=perl6

0 commit comments

Comments
 (0)