From 27ef35ff6664e9a7cb2a72bd73af716b50dd75fe Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Thu, 30 Nov 2017 15:52:38 +0100 Subject: test it::grep invert --- tests/it.t | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/it.t') 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 -- cgit v1.2.3