From 0489533600c07c5473352c4da4f28e9bee23d736 Mon Sep 17 00:00:00 2001 From: Koji Tanaka Date: Sun, 5 Feb 2023 18:19:49 +0900 Subject: [PATCH] test: Fixed expected value when float value is specified in DboSource::value() argument. --- lib/Cake/Test/Case/Model/Datasource/Database/PostgresTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Cake/Test/Case/Model/Datasource/Database/PostgresTest.php b/lib/Cake/Test/Case/Model/Datasource/Database/PostgresTest.php index 0974b0959..ed499e077 100644 --- a/lib/Cake/Test/Case/Model/Datasource/Database/PostgresTest.php +++ b/lib/Cake/Test/Case/Model/Datasource/Database/PostgresTest.php @@ -327,7 +327,7 @@ class PostgresTest extends CakeTestCase { * @return void */ public function testValueQuoting() { - $this->assertEquals("1.200000", $this->Dbo->value(1.2, 'float')); + $this->assertEquals("1.2", $this->Dbo->value(1.2, 'float')); $this->assertEquals("'1,2'", $this->Dbo->value('1,2', 'float')); $this->assertEquals("0", $this->Dbo->value('0', 'integer')); @@ -369,7 +369,7 @@ class PostgresTest extends CakeTestCase { $this->assertEquals("3.141593", $result); $result = $this->db->value(3.14); - $this->assertEquals("3.140000", $result); + $this->assertEquals("3.14", $result); } /**