diff options
author | Jesse Luehrs <doy@tozt.net> | 2011-07-08 23:11:34 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2011-07-08 23:11:34 -0500 |
commit | 9174cec546b4dba5821ce29a408feb860f49c244 (patch) | |
tree | 10028a63e7cc2985461d0f9b4bb83c411db77020 /t/basic.t | |
parent | 6c7d5e2e4024df3b3d0f54bab14909ddfcd478c0 (diff) | |
download | smartmatch-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.t | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 })); } |