summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtests/it.t1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/it.t b/tests/it.t
index 8d840ef..22826a6 100755
--- a/tests/it.t
+++ b/tests/it.t
@@ -309,6 +309,7 @@ is(it::grep('ismatch', array('ismatch', 'isnomatch')), array('ismatch'), 'grep
is(it::grep('!', array('ismatch!', 'isnomatch')), array('ismatch!'), '! in regex');
is(it::grep('lower|UPPER', array('lower', 'LOWER', 'upper', 'UPPER'), array('casesensitive' => 1)), array(0 => 'lower', 3 => 'UPPER'), 'set casesensitive');
is(it::grep('match', array('foo' => 'match', 'bar' => 'gna')), array('foo' => 'match'), 'with keys');
+is(it::grep('2', [0 => 1, 1 => 2, 2 => 3], ['invert' => true]), [0 => 1, 2 => 3]);
setlocale(LC_CTYPE, $oldlocale);
ini_set('default_charset', $oldcharset); # end of tests that must run with specific charset