Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Test if $*REPO is a CompUnit::Repository
  • Loading branch information
niner committed Oct 21, 2015
1 parent 4e223c5 commit c36ab6d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion S11-compunit/compunit-repository.t
@@ -1,13 +1,15 @@
use v6;
use Test;

plan 4;
plan 5;

for <need loaded>.combinations[0 .. *-2] {
throws-like "class :: does CompUnit::Repository \{ { $_.map({"method {$_}() \{\}"}).join(';') } \}", X::AdHoc;
}

eval-lives-ok 'class MyRepo does CompUnit::Repository { method need() { }; method loaded() { } }';

ok $*REPO ~~ CompUnit::Repository;

# vim: ft=perl6

0 comments on commit c36ab6d

Please sign in to comment.