From d1b9f791dd2e4a17c44ee2b43ea4f0bfc7a2122b Mon Sep 17 00:00:00 2001 From: OlivierRaginel Date: Mon, 8 Nov 2010 15:36:01 +0000 Subject: [PATCH] Item9971: QueryTests assumed the simplifaction ot the empty string was 0. That might have been right at the time of the design, but that is wrong now. Fixed the code, now fix the unit test that goes with it, and put a comment so it shoud stay that way git-svn-id: http://svn.foswiki.org/trunk@9903 0b4bb1d4-4e5a-0410-9cc4-b2b747904278 --- UnitTestContrib/test/unit/QueryTests.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UnitTestContrib/test/unit/QueryTests.pm b/UnitTestContrib/test/unit/QueryTests.pm index b6dcf9e75a..a73ca7465c 100644 --- a/UnitTestContrib/test/unit/QueryTests.pm +++ b/UnitTestContrib/test/unit/QueryTests.pm @@ -214,7 +214,7 @@ sub check { sub verify_atoms { my $this = shift; $this->check( "'0'", eval=> '0', simpler=>0 ); - $this->check( "''", eval=> '', simpler=>0 ); + $this->check( "''", eval=> '', simpler=>q{''} ); # Not 0 - See Item9971 $this->check( "1", eval=> 1, simpler=>1 ); $this->check( "-1", eval=> -1, simpler=>-1 ); $this->check( "-1.1965432e-3", eval=>-1.1965432e-3, simpler=>-1.1965432e-3 );