Skip to content

Commit c7b3b9d

Browse files
committed
DEBUG less precision to fix MSSQL testing
1 parent 1d9a056 commit c7b3b9d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/TypecastingTest.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function testType(): void
4040
'boolean' => true,
4141
'integer' => '2940',
4242
'money' => '8.20',
43-
'float' => '8.20234376757473',
43+
'float' => '8.20234',
4444
'json' => '[1,2,3]',
4545
],
4646
],
@@ -69,7 +69,7 @@ public function testType(): void
6969
$this->assertEquals(new \DateTime('1970-01-01 12:00:50'), $mm->get('time'));
7070
$this->assertSame(2940, $mm->get('integer'));
7171
$this->assertSame([1, 2, 3], $mm->get('json'));
72-
$this->assertSame(8.20234376757473, $mm->get('float'));
72+
$this->assertSame(8.20234, $mm->get('float'));
7373

7474
$m->createEntity()->setMulti(array_diff_key($mm->get(), ['id' => true]))->save();
7575

@@ -84,7 +84,7 @@ public function testType(): void
8484
'boolean' => 1,
8585
'integer' => 2940,
8686
'money' => 8.2,
87-
'float' => 8.20234376757473,
87+
'float' => 8.20234,
8888
'json' => '[1,2,3]',
8989
],
9090
2 => [
@@ -96,7 +96,7 @@ public function testType(): void
9696
'boolean' => '1',
9797
'integer' => '2940',
9898
'money' => '8.2',
99-
'float' => '8.20234376757473',
99+
'float' => '8.20234',
100100
'json' => '[1,2,3]',
101101
],
102102
],
@@ -243,7 +243,7 @@ public function testTypeCustom1(): void
243243
'b2' => false,
244244
'integer' => '2940',
245245
'money' => '8.20',
246-
'float' => '8.20234376757473',
246+
'float' => '8.20234',
247247
],
248248
],
249249
];

0 commit comments

Comments
 (0)