summaryrefslogtreecommitdiff
path: root/t/lib
diff options
context:
space:
mode:
authordakkar <dakkar@thenautilus.net>2015-09-05 16:21:29 +0100
committerdakkar <dakkar@thenautilus.net>2015-09-05 16:21:29 +0100
commit4078424b9105dba16c50087347b3a607cd75d4d1 (patch)
treebd81983e27be76dcb28254f26c5359be47a8aa8d /t/lib
parentmore tests (diff)
downloadWebCoso-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.pm19
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,
+ );
+}