diff options
author | dakkar <dakkar@thenautilus.net> | 2015-09-05 16:21:29 +0100 |
---|---|---|
committer | dakkar <dakkar@thenautilus.net> | 2015-09-05 16:21:29 +0100 |
commit | 4078424b9105dba16c50087347b3a607cd75d4d1 (patch) | |
tree | bd81983e27be76dcb28254f26c5359be47a8aa8d /t/lib | |
parent | more tests (diff) | |
download | WebCoso-p6-4078424b9105dba16c50087347b3a607cd75d4d1.tar.gz WebCoso-p6-4078424b9105dba16c50087347b3a607cd75d4d1.tar.bz2 WebCoso-p6-4078424b9105dba16c50087347b3a607cd75d4d1.zip |
first maker test
Diffstat (limited to 't/lib')
-rw-r--r-- | t/lib/Test/WebCoso.pm | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/t/lib/Test/WebCoso.pm b/t/lib/Test/WebCoso.pm new file mode 100644 index 0000000..1f54c92 --- /dev/null +++ b/t/lib/Test/WebCoso.pm @@ -0,0 +1,19 @@ +# -*- mode: perl6 -*- +unit module Test::WebCoso; +use Test; + +sub cmp-files($a,$b,$msg) is export { + ok( + ($a.defined and $b.defined and $a.keys eqv $b.keys and + [and] map { + my $cmp = $b{$_}; + if $cmp ~~ Callable { + $cmp.($a{$_}) + } + else { + $a{$_}.abspath eq $cmp.abspath + } + }, $a.keys), + $msg, + ); +} |