Fixing failing tests for float formatting.

This commit is contained in:
mark_story 2011-09-08 20:09:48 -04:00
parent 1e1671ab7f
commit da6a5fa301

View file

@ -2548,11 +2548,11 @@ class DboSourceTest extends CakeTestCase {
$this->assertEqual($result, $expected);
$result = $this->testDb->conditions(array('score BETWEEN ? AND ?' => array(90.1, 95.7)));
$expected = " WHERE `score` BETWEEN 90.100000 AND 95.700000";
$expected = " WHERE `score` BETWEEN 90.1 AND 95.7";
$this->assertEqual($result, $expected);
$result = $this->testDb->conditions(array('Post.title' => 1.1));
$expected = " WHERE `Post`.`title` = 1.100000";
$expected = " WHERE `Post`.`title` = 1.1";
$this->assertEqual($result, $expected);
$result = $this->testDb->conditions(array('Post.title' => 1.1), true, true, new Post());