From 62a80d4a07941b1783dcbd3151f33f8f2c3b9cfa Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Tue, 15 Nov 2011 14:41:34 +0000 Subject: faster it::replace --- tests/it.t | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests') diff --git a/tests/it.t b/tests/it.t index 7b95b7e..75062b6 100755 --- a/tests/it.t +++ b/tests/it.t @@ -210,7 +210,10 @@ is( "test all=>1,pattern_order=>1" ); +is(it::replace(array('a' => "1", 'b' => "2"), "ab"), "12"); +is(it::replace(array('!' => "x"), "!"), "x"); is(it::replace(array('\w' => "x"), "oö"), "xx"); +is(it::replace(array('[[:alpha:]]' => "x"), "ö"), "x"); is(it::replace(array('\w' => "x", '#' => "!"), "#ö"), "!x"); is(it::replace(array('#' => "!", '\w' => "x"), "#ö"), "!x"); is(it::replace(array('ö' => "x"), "Ö"), "x"); -- cgit v1.2.3