Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
* develop:
  specify next release
  fix test
  fix return type for global property function
  • Loading branch information
Baptouuuu committed Feb 19, 2024
2 parents f3cea21 + c51e9f0 commit b927472
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 5.6.3 - 2024-02-19

### Fixed

- The global function `property` return type is now `Innmind\BlackBox\Runner\Proof\Property` allowing you to name the property

## 5.6.2 - 2024-01-28

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion src/Runner/global.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function given(Set $first, Set ...$rest): Given
function property(
string $property,
Set $systemUnderTest,
): Proof {
): Proof\Property {
return \Innmind\BlackBox\Runner\property($property, $systemUnderTest);
}

Expand Down
4 changes: 2 additions & 2 deletions tests/Set/IntegersTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,8 @@ public function testShrinkingStrategiesNeverProduceTheSameResultTwice()
do {
$this->assertNotSame($previous->unwrap(), $integer->unwrap());
$previous = $integer;
$integer = $integer->shrink()->b();
} while ($integer->shrinkable());
$integer = $integer->shrink()?->b();
} while ($integer?->shrinkable() ?? false);
}

public function testInitialBoundsAreAlwaysRespectedWhenShrinking()
Expand Down

0 comments on commit b927472

Please sign in to comment.