Skip to content

Commit f3eb270

Browse files
committed
Test CompUnit::DependencySpecification
1 parent 05a31b0 commit f3eb270

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
use v6;
2+
use Test;
3+
4+
plan 6;
5+
6+
throws-like { CompUnit::DependencySpecification.new }, X::Attribute::Required,
7+
throws-like { CompUnit::DependencySpecification.new(:short-name(1)) }, X::TypeCheck::Assignment;
8+
ok my $ds = CompUnit::DependencySpecification.new(:short-name<Foo>);
9+
is $ds.version-matcher, True;
10+
is $ds.auth-matcher, True;
11+
is $ds.api-matcher, True;
12+
13+
# vim: ft=perl6

0 commit comments

Comments
 (0)