summaryrefslogtreecommitdiffstats
path: root/t/basic.t
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2011-07-08 23:11:34 -0500
committerJesse Luehrs <doy@tozt.net>2011-07-08 23:11:34 -0500
commit9174cec546b4dba5821ce29a408feb860f49c244 (patch)
tree10028a63e7cc2985461d0f9b4bb83c411db77020 /t/basic.t
parent6c7d5e2e4024df3b3d0f54bab14909ddfcd478c0 (diff)
downloadsmartmatch-9174cec546b4dba5821ce29a408feb860f49c244.tar.gz
smartmatch-9174cec546b4dba5821ce29a408feb860f49c244.zip
split rjbs engine out into its own dist
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 }));
}