Skip to content

Commit

Permalink
Update DatabaseEloquentModelTest.php
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamCampbell authored Jun 24, 2020
1 parent ffeeb67 commit 68ce6ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Database/DatabaseEloquentModelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,9 @@ public function testCleanAttributes()
public function testCleanWhenFloatUpdateAttribute()
{
// test is equivalent
$model = new EloquentModelStub(['castedFloat' => 10.0]);
$model = new EloquentModelStub(['castedFloat' => 8 - 6.4]);
$model->syncOriginal();
$this->assertTrue($model->originalIsEquivalent('castedFloat', 9.9999999999999999999999999999999));
$this->assertTrue($model->originalIsEquivalent('castedFloat', 1.6));

// test is not equivalent
$model = new EloquentModelStub(['castedFloat' => 5.6]);
Expand Down

0 comments on commit 68ce6ce

Please sign in to comment.