From 33ae0cd69d0f0acc537b2b956a0b334d52f95ded Mon Sep 17 00:00:00 2001 From: Baptiste Langlade Date: Sun, 10 May 2026 18:05:40 +0200 Subject: [PATCH] fix shrinked typo --- tests/Set/CompositeTest.php | 2 +- tests/Set/DecorateTest.php | 2 +- tests/Set/IntegersTest.php | 10 +++++----- tests/Set/RealNumbersTest.php | 10 +++++----- tests/Set/StringsTest.php | 4 ++-- tests/Set/UnsafeStringsTest.php | 8 ++++---- 6 files changed, 18 insertions(+), 18 deletions(-) diff --git a/tests/Set/CompositeTest.php b/tests/Set/CompositeTest.php index 7250f9c..975dba5 100644 --- a/tests/Set/CompositeTest.php +++ b/tests/Set/CompositeTest.php @@ -127,7 +127,7 @@ static function(string ...$args) { } } - public function testShrinkedValuesUseTheDifferentStrategiesFromTheUnderlyingSets() + public function testShrunkValuesUseTheDifferentStrategiesFromTheUnderlyingSets() { $set = Set::compose( static function(...$args) { diff --git a/tests/Set/DecorateTest.php b/tests/Set/DecorateTest.php index 94de687..4847fe1 100644 --- a/tests/Set/DecorateTest.php +++ b/tests/Set/DecorateTest.php @@ -112,7 +112,7 @@ public function testConserveUnderlyingSetShrinkability() } } - public function testShrinkedValuesAlwaysRespectTheSetPredicate() + public function testShrunkValuesAlwaysRespectTheSetPredicate() { $set = Set::integers() ->map(static function(int $value) { diff --git a/tests/Set/IntegersTest.php b/tests/Set/IntegersTest.php index e2341f6..46b2f29 100644 --- a/tests/Set/IntegersTest.php +++ b/tests/Set/IntegersTest.php @@ -107,7 +107,7 @@ public function testValues() } } - public function testZeroCannotBeShrinked() + public function testZeroCannotBeShrunk() { $ints = Set::integers() ->between(-1, 1) @@ -119,7 +119,7 @@ public function testZeroCannotBeShrinked() } } - public function testIntegersCanBeShrinked() + public function testIntegersCanBeShrunk() { $ints = Set::integers() ->filter(static fn($i) => $i !== 0) @@ -130,7 +130,7 @@ public function testIntegersCanBeShrinked() } } - public function testIntegersAreShrinkedTowardZero() + public function testIntegersAreShrunkTowardZero() { $positive = Set::integers() ->above(1) @@ -161,7 +161,7 @@ public function testIntegersAreShrinkedTowardZero() } } - public function testShrinkedValuesNeverChangeSign() + public function testShrunkValuesNeverChangeSign() { $integers = Set::integers()->take(100); @@ -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) diff --git a/tests/Set/RealNumbersTest.php b/tests/Set/RealNumbersTest.php index b9a54b0..676a655 100644 --- a/tests/Set/RealNumbersTest.php +++ b/tests/Set/RealNumbersTest.php @@ -96,7 +96,7 @@ public function testValues() } } - public function testZeroCannotBeShrinked() + public function testZeroCannotBeShrunk() { $number = Set::realNumbers() ->between(-1, 1) @@ -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) @@ -122,7 +122,7 @@ public function testRealNumbersCanBeShrinked() } } - public function testRealNumbersAreShrinkedTowardZero() + public function testRealNumbersAreShrunkTowardZero() { $positive = Set::realNumbers() ->above(1) @@ -153,7 +153,7 @@ public function testRealNumbersAreShrinkedTowardZero() } } - public function testShrinkedValuesNeverChangeSign() + public function testShrunkValuesNeverChangeSign() { $numbers = Set::realNumbers()->take(100); @@ -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) diff --git a/tests/Set/StringsTest.php b/tests/Set/StringsTest.php index a5a5580..28b40d8 100644 --- a/tests/Set/StringsTest.php +++ b/tests/Set/StringsTest.php @@ -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 @@ -121,7 +121,7 @@ public function testNonEmptyStringsAreShrinkable() } } - public function testShrinkedValuesAlwaysMatchTheGivenPredicate() + public function testShrunkValuesAlwaysMatchTheGivenPredicate() { $strings = Set::strings() ->filter(static fn($string) => \strlen($string) > 20) diff --git a/tests/Set/UnsafeStringsTest.php b/tests/Set/UnsafeStringsTest.php index 6dcbba2..458fbb4 100644 --- a/tests/Set/UnsafeStringsTest.php +++ b/tests/Set/UnsafeStringsTest.php @@ -63,7 +63,7 @@ public function testValues() } } - public function testEmptyStringCannotBeShrinked() + public function testEmptyStringCannotBeShrunk() { $strings = Set::strings() ->unsafe() @@ -88,7 +88,7 @@ public function testNonEmptyStringsAreShrinkable() } } - public function testStringsAreShrinkedFromBothEnds() + public function testStringsAreShrunkFromBothEnds() { $strings = Set::strings() ->unsafe() @@ -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; } @@ -134,7 +134,7 @@ public function testStringsOfOneCharacterCantBeShrunk() } } - public function testShrinkedValuesAlwaysMatchTheGivenPredicate() + public function testShrunkValuesAlwaysMatchTheGivenPredicate() { $strings = Set::strings() ->unsafe()