Skip to content
Browse files

Fixing failing tests for float formatting.

  • Loading branch information...
1 parent 1e1671a commit da6a5fa301cb1d30c12bf9d3fb1d76f5e9288336 @markstory markstory committed Sep 8, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 cake/tests/cases/libs/model/datasources/dbo_source.test.php
View
4 cake/tests/cases/libs/model/datasources/dbo_source.test.php
@@ -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());

0 comments on commit da6a5fa

Please sign in to comment.
Something went wrong with that request. Please try again.