diff options
author | Urban Müller | 2011-11-15 14:41:34 +0000 |
---|---|---|
committer | Urban Müller | 2011-11-15 14:41:34 +0000 |
commit | 62a80d4a07941b1783dcbd3151f33f8f2c3b9cfa (patch) | |
tree | 2ff2c8228e9b37624d84f5e15ded53662ecd47eb /tests | |
parent | 88321feeb17e271cbaa582dd2507f3591f65f5f7 (diff) | |
download | itools-62a80d4a07941b1783dcbd3151f33f8f2c3b9cfa.tar.gz itools-62a80d4a07941b1783dcbd3151f33f8f2c3b9cfa.tar.bz2 itools-62a80d4a07941b1783dcbd3151f33f8f2c3b9cfa.zip |
faster it::replace
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/it.t | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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"); |