summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2013-07-01 14:02:09 +0000
committerUrban Müller2013-07-01 14:02:09 +0000
commitdbae2e6a3c1cde25e7f83079ca5a284ddeb29c56 (patch)
tree511d076945202e0dc062fb3e29e8a9bc36a7f75a
parentd95ab5019c2fb2f8a372ae858cbcaaa262351b36 (diff)
downloaditools-dbae2e6a3c1cde25e7f83079ca5a284ddeb29c56.tar.gz
itools-dbae2e6a3c1cde25e7f83079ca5a284ddeb29c56.tar.bz2
itools-dbae2e6a3c1cde25e7f83079ca5a284ddeb29c56.zip
test sequential pattern application in ::replace
-rwxr-xr-xtests/it.t1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/it.t b/tests/it.t
index ffce004..3b69072 100755
--- a/tests/it.t
+++ b/tests/it.t
@@ -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');