Skip to content

Commit

Permalink
chore: remove PowerOfTwoSpec test repetitions
Browse files Browse the repository at this point in the history
  • Loading branch information
karkowg committed May 3, 2024
1 parent 531417c commit 4288a2d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions tests/PowerOfTwoSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,26 +37,22 @@
new PowerOfTwo($value);
})
->with($notPowerOfTwoGenerator(min: 0, max: MaxValue::UInt8->value))
->repeat(5)
->throws(InvalidArgumentException::class);

it('is not power of two w/ random int from 256 to 65535', function (int $value) {
new PowerOfTwo($value);
})
->with($notPowerOfTwoGenerator(min: MaxValue::UInt8->value + 1, max: MaxValue::UInt16->value))
->repeat(5)
->throws(InvalidArgumentException::class);

it('is not power of two w/ random int from 65536 to 16777215', function (int $value) {
new PowerOfTwo($value);
})
->with($notPowerOfTwoGenerator(min: MaxValue::UInt16->value + 1, max: MaxValue::UInt24->value))
->repeat(5)
->throws(InvalidArgumentException::class);

it('is not power of two w/ random int from 16777216 to 4294967295', function (int $value) {
new PowerOfTwo($value);
})
->with($notPowerOfTwoGenerator(min: MaxValue::UInt24->value + 1, max: MaxValue::UInt32->value))
->repeat(5)
->throws(InvalidArgumentException::class);

0 comments on commit 4288a2d

Please sign in to comment.