From 7722bd06a2797d06529d21fc939cd84ae98361fe Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Thu, 30 Aug 2007 13:43:13 +0000 Subject: --- tests/it.t | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'tests/it.t') diff --git a/tests/it.t b/tests/it.t index 9ae2a5c..e399c72 100755 --- a/tests/it.t +++ b/tests/it.t @@ -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" ); ?> -- cgit v1.2.3