Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/Set/CompositeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ static function(string ...$args) {
}
}

public function testShrinkedValuesUseTheDifferentStrategiesFromTheUnderlyingSets()
public function testShrunkValuesUseTheDifferentStrategiesFromTheUnderlyingSets()
{
$set = Set::compose(
static function(...$args) {
Expand Down
2 changes: 1 addition & 1 deletion tests/Set/DecorateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public function testConserveUnderlyingSetShrinkability()
}
}

public function testShrinkedValuesAlwaysRespectTheSetPredicate()
public function testShrunkValuesAlwaysRespectTheSetPredicate()
{
$set = Set::integers()
->map(static function(int $value) {
Expand Down
10 changes: 5 additions & 5 deletions tests/Set/IntegersTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public function testValues()
}
}

public function testZeroCannotBeShrinked()
public function testZeroCannotBeShrunk()
{
$ints = Set::integers()
->between(-1, 1)
Expand All @@ -119,7 +119,7 @@ public function testZeroCannotBeShrinked()
}
}

public function testIntegersCanBeShrinked()
public function testIntegersCanBeShrunk()
{
$ints = Set::integers()
->filter(static fn($i) => $i !== 0)
Expand All @@ -130,7 +130,7 @@ public function testIntegersCanBeShrinked()
}
}

public function testIntegersAreShrinkedTowardZero()
public function testIntegersAreShrunkTowardZero()
{
$positive = Set::integers()
->above(1)
Expand Down Expand Up @@ -161,7 +161,7 @@ public function testIntegersAreShrinkedTowardZero()
}
}

public function testShrinkedValuesNeverChangeSign()
public function testShrunkValuesNeverChangeSign()
{
$integers = Set::integers()->take(100);

Expand All @@ -177,7 +177,7 @@ public function testShrinkedValuesNeverChangeSign()
}
}

public function testShrinkedValuesAlwaysRespectThePredicate()
public function testShrunkValuesAlwaysRespectThePredicate()
{
$even = Set::integers()
->filter(static fn($i) => $i !== 0 && ($i % 2) === 0)
Expand Down
10 changes: 5 additions & 5 deletions tests/Set/RealNumbersTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public function testValues()
}
}

public function testZeroCannotBeShrinked()
public function testZeroCannotBeShrunk()
{
$number = Set::realNumbers()
->between(-1, 1)
Expand All @@ -111,7 +111,7 @@ public function testZeroCannotBeShrinked()
$this->assertSame(0, $number->unwrap());
}

public function testRealNumbersCanBeShrinked()
public function testRealNumbersCanBeShrunk()
{
$numbers = Set::realNumbers()
->filter(static fn($i) => $i !== 0.0)
Expand All @@ -122,7 +122,7 @@ public function testRealNumbersCanBeShrinked()
}
}

public function testRealNumbersAreShrinkedTowardZero()
public function testRealNumbersAreShrunkTowardZero()
{
$positive = Set::realNumbers()
->above(1)
Expand Down Expand Up @@ -153,7 +153,7 @@ public function testRealNumbersAreShrinkedTowardZero()
}
}

public function testShrinkedValuesNeverChangeSign()
public function testShrunkValuesNeverChangeSign()
{
$numbers = Set::realNumbers()->take(100);

Expand All @@ -174,7 +174,7 @@ public function testShrinkedValuesNeverChangeSign()
}
}

public function testShrinkedValuesAlwaysRespectThePredicate()
public function testShrunkValuesAlwaysRespectThePredicate()
{
$even = Set::realNumbers()
->filter(static fn($i) => $i !== 0 && (((int) \round($i)) % 2) === 0)
Expand Down
4 changes: 2 additions & 2 deletions tests/Set/StringsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public function testValues()
}
}

public function testEmptyStringCannotBeShrinked()
public function testEmptyStringCannotBeShrunk()
{
$strings = Set::strings()
->between(0, 1) // always generate string of length 1
Expand Down Expand Up @@ -121,7 +121,7 @@ public function testNonEmptyStringsAreShrinkable()
}
}

public function testShrinkedValuesAlwaysMatchTheGivenPredicate()
public function testShrunkValuesAlwaysMatchTheGivenPredicate()
{
$strings = Set::strings()
->filter(static fn($string) => \strlen($string) > 20)
Expand Down
8 changes: 4 additions & 4 deletions tests/Set/UnsafeStringsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function testValues()
}
}

public function testEmptyStringCannotBeShrinked()
public function testEmptyStringCannotBeShrunk()
{
$strings = Set::strings()
->unsafe()
Expand All @@ -88,7 +88,7 @@ public function testNonEmptyStringsAreShrinkable()
}
}

public function testStringsAreShrinkedFromBothEnds()
public function testStringsAreShrunkFromBothEnds()
{
$strings = Set::strings()
->unsafe()
Expand All @@ -107,7 +107,7 @@ public function testStringsAreShrinkedFromBothEnds()
$b = $dichotomy->b();

if (\strlen($value->unwrap()) === 2) {
// we continue as the shrinked values won't match the set predicate
// we continue as the shrunk values won't match the set predicate
continue;
}

Expand All @@ -134,7 +134,7 @@ public function testStringsOfOneCharacterCantBeShrunk()
}
}

public function testShrinkedValuesAlwaysMatchTheGivenPredicate()
public function testShrunkValuesAlwaysMatchTheGivenPredicate()
{
$strings = Set::strings()
->unsafe()
Expand Down
Loading