Skip to content

Commit 58a429e

Browse files
committed
fix(validation): adjust DivisibleByTest
0 is divisible by any number
1 parent 461ae48 commit 58a429e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/validation/tests/Rules/DivisibleByTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public function test_it_works(): void
1818

1919
$this->assertTrue($rule->isValid(10));
2020
$this->assertTrue($rule->isValid(5));
21-
$this->assertFalse($rule->isValid(0));
21+
$this->assertTrue($rule->isValid(0));
2222

2323
$this->assertFalse($rule->isValid(3));
2424
$this->assertFalse($rule->isValid(4));

0 commit comments

Comments
 (0)