diff options
author | Christian Schneider | 2007-08-30 13:43:13 +0000 |
---|---|---|
committer | Christian Schneider | 2007-08-30 13:43:13 +0000 |
commit | 7722bd06a2797d06529d21fc939cd84ae98361fe (patch) | |
tree | 511292c13fa0d47e260f6e0ba2dd2dc794002e25 /tests/it.t | |
parent | 52ead6bc0391e0c85cdba31e83cd38e661a514c6 (diff) | |
download | itools-7722bd06a2797d06529d21fc939cd84ae98361fe.tar.gz itools-7722bd06a2797d06529d21fc939cd84ae98361fe.tar.bz2 itools-7722bd06a2797d06529d21fc939cd84ae98361fe.zip |
Diffstat (limited to 'tests/it.t')
-rwxr-xr-x | tests/it.t | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -123,7 +123,7 @@ match( match( '[\w]+', ' \\\\aword[[[]]] ', 'aword', - 'replace \w in [\w] correctly (match)', + 'replace \w in [\w] correctly (match)' ); match( '[\\\\w]+', ' blabergna ', @@ -133,7 +133,7 @@ match( match( '[\\\\w]+', ' \\\\worda[[[]', '\\\\w', - 'don\'t parse \w in [\\\\w] (match)', + 'don\'t parse \w in [\\\\w] (match)' ); match( '[a\W]+', 'bbbbbbb a a%$+ accccc', @@ -161,7 +161,7 @@ is( 'test tr regex function' ); is( - it::match( '\w+', 'word1 wörd2 word_3', 'all' => true ), + it::match( '\w+', 'word1 wörd2 word_3', array('all' => true )), array( 'word1', 'wörd2', 'word_3' ), "test match_all function" ); @@ -176,29 +176,29 @@ match( 'match umlaute in latin1 case insensitive' ); is( - it::match( 'abc', "aBc", 'casesensitive' => 1 ), + it::match( 'abc', "aBc", array('casesensitive' => 1 )), false, "set case sensitivity by parameter" ); is( - it::match( '\w+', 'word1 wörd2 word_3', 'all' => 1 ), + it::match( '\w+', 'word1 wörd2 word_3', array('all' => 1 )), array( 'word1', 'wörd2', 'word_3' ), "test all=>1 without captures" ); is( - it::match( '\w+\s+(\d+)', 'word1 12 wörd2 3 word_3 4', 'all' => 1 ), + it::match( '\w+\s+(\d+)', 'word1 12 wörd2 3 word_3 4', array('all' => 1 )), array( '12', '3', '4' ), "test all=>1 with one capture" ); is( - it::match( '(\w+)\s+(\d+)', 'word1 12 wörd2 3 word_3 4', 'all' => 1 ), + it::match( '(\w+)\s+(\d+)', 'word1 12 wörd2 3 word_3 4', array('all' => 1 )), array( array( 'word1', '12' ), array( 'wörd2', '3' ), array( 'word_3', '4' ) ), "test all=>1 with captures" ); is( - it::match( '(\w+)\s+(\d+)', 'word1 12 wörd2 3 word_3 4', 'all' => 1, 'pattern_order' => 1 ), + it::match( '(\w+)\s+(\d+)', 'word1 12 wörd2 3 word_3 4', array('all' => 1, 'pattern_order' => 1 )), array( array( 'word1', 'wörd2', 'word_3' ), array( '12', '3', '4' ) ), - "test all=>1,pattern_order=>1", + "test all=>1,pattern_order=>1" ); ?> |