diff options
author | Urban Müller | 2013-07-01 14:02:09 +0000 |
---|---|---|
committer | Urban Müller | 2013-07-01 14:02:09 +0000 |
commit | dbae2e6a3c1cde25e7f83079ca5a284ddeb29c56 (patch) | |
tree | 511d076945202e0dc062fb3e29e8a9bc36a7f75a | |
parent | d95ab5019c2fb2f8a372ae858cbcaaa262351b36 (diff) | |
download | itools-dbae2e6a3c1cde25e7f83079ca5a284ddeb29c56.tar.gz itools-dbae2e6a3c1cde25e7f83079ca5a284ddeb29c56.tar.bz2 itools-dbae2e6a3c1cde25e7f83079ca5a284ddeb29c56.zip |
test sequential pattern application in ::replace
-rwxr-xr-x | tests/it.t | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -305,6 +305,7 @@ is(it::replace(array('#' => "!", '\w' => "x"), "#ö"), "!x"); is(it::replace(array('ö' => "x"), "Ö"), "x"); is(it::replace(array('a' => "1"), "aaa", array('limit' => 1)), "1aa"); is(it::replace(array('\s' => "x"), it_html::entity_decode(" ")), "x", "match non-breaking space as white-space character"); +is(it::replace(array('a' => "b", 'b' => "c"), "a"), "c"); is(it::grep('ismatch', array('ismatch', 'isnomatch')), array('ismatch'), 'grep with simple regex'); is(it::grep('!', array('ismatch!', 'isnomatch')), array('ismatch!'), '! in regex'); |