• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item5521: IF is partially case insensitive?

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine   Normal No Action Required   n/a  

Edit Form Data

Reported By:
Applies To:
Current State:
Waiting For:
Target Release:
Released In:


the Fn_IF unit tests
    $this->check("string='String'", 1);


    $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

Summary IF is partially case insensitive?
ReportedBy TWiki:Main.SvenDowideit
Codebase 4.2.0, 4.2.1, ~twiki4
SVN Range TWiki-5.0.0, Thu, 03 Apr 2008, build 16612
AppliesTo Engine

Priority Normal
CurrentState No Action Required


TargetRelease n/a

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r2 - 2008-04-11 - CrawfordCurrie
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2022 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback