summaryrefslogtreecommitdiffstats
path: root/t/basic.t
diff options
context:
space:
mode:
Diffstat (limited to 't/basic.t')
-rw-r--r--t/basic.t7
1 files changed, 6 insertions, 1 deletions
diff --git a/t/basic.t b/t/basic.t
index 421623a..39b564c 100644
--- a/t/basic.t
+++ b/t/basic.t
@@ -12,7 +12,12 @@ ok(1 ~~ 1);
ok(1 ~~ 1);
{
- use smartmatch 'rjbs';
+ package smartmatch::engine::foo;
+ sub match { ref($_[1]) eq 'ARRAY' }
+}
+
+{
+ use smartmatch 'foo';
ok([] ~~ qr/ARRAY/);
ok(!(1 ~~ sub { 0 }));
}