Skip to content
Permalink
Browse files

Item9971: QueryTests assumed the simplifaction ot the empty string wa…

…s 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
  • Loading branch information...
OlivierRaginel OlivierRaginel
OlivierRaginel authored and OlivierRaginel committed Nov 8, 2010
1 parent 1ac3319 commit d1b9f791dd2e4a17c44ee2b43ea4f0bfc7a2122b
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 );

0 comments on commit d1b9f79

Please sign in to comment.
You can’t perform that action at this time.