the Fn_IF unit tests
$this->check("string='String'", 1);
and
$this->check("string~'*String'", 1);
worry me. I see nothing in
QuerySearch that suggests that = or ~ are case insensitive, and yet these tests are written to succeed.
--
SvenDowideit - 11 Apr 2008
Why wouldn't they? The value of the field named 'string' is 'String'. Try:
Index: UnitTestContrib/test/unit/QueryTests.pm
===================================================================
--- UnitTestContrib/test/unit/QueryTests.pm (revision 16647)
+++ UnitTestContrib/test/unit/QueryTests.pm (working copy)
@@ -170,6 +170,9 @@
$this->check("string!='Str'", 1);
$this->check("string!='String '", 1);
$this->check("string!='String'", 0);
+ $this->check("string!='string'", 1);
+ $this->check("string='string'", 0);
+ $this->check("string~'string'", 0);
}
No bug here.
--
CrawfordCurrie - 11 Apr 2008