From 7bb7288a5489b6264680a81d4c5ab31a0ceeea72 Mon Sep 17 00:00:00 2001 From: doy Date: Sat, 6 Dec 2008 20:23:00 -0500 Subject: use ! as the prefix for negated matching rather than not_, since it's possible to have methods named 'not_foo' --- t/002-complicated-matching.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 't') diff --git a/t/002-complicated-matching.t b/t/002-complicated-matching.t index bcf2399..80d081c 100644 --- a/t/002-complicated-matching.t +++ b/t/002-complicated-matching.t @@ -21,5 +21,5 @@ ok($foo->match(a => [qr/b/, sub { length(shift) == 3 }]), 'arrayref matching works'); ok(!$foo->match(a => [qr/b/, sub { length(shift) == 4 }]), 'arrayref matching works'); -ok($foo->match(not_a => 'bar', b => 'bar', not_c => 'bar'), +ok($foo->match('!a' => 'bar', b => 'bar', '!c' => 'bar'), 'negated matching works'); -- cgit v1.2.3-54-g00ecf