summaryrefslogtreecommitdiff
path: root/tests/it.t
diff options
context:
space:
mode:
Diffstat (limited to 'tests/it.t')
-rwxr-xr-xtests/it.t18
1 files changed, 9 insertions, 9 deletions
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"
);
?>