Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixing failing tests for float formatting.
  • Loading branch information
markstory committed Sep 9, 2011
1 parent 1e1671a commit da6a5fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cake/tests/cases/libs/model/datasources/dbo_source.test.php
Expand Up @@ -2548,11 +2548,11 @@ function testArrayConditionsParsing() {
$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());
Expand Down

0 comments on commit da6a5fa

Please sign in to comment.