feat(sequence): Add support for nested traversable

This commit is contained in:
Andrea Marco Sartori
2023-08-02 20:31:53 +02:00
parent 4b24da1a58
commit 6ead2a4e8b
3 changed files with 49 additions and 25 deletions

View File

@ -297,12 +297,14 @@
PASS Tests\Features\Expect\sequence
✓ an exception is thrown if the the type is not iterable
✓ an exception is thrown if there are no expectations
✓ allows for sequences of checks to be run on iterable data
✓ loops back to the start if it runs out of sequence items
✓ fails if the number of iterable items is greater than the number of expectations
✓ fails if the number of iterable items is less than the number of expectations
✓ it works with associative arrays
✓ it can be passed non-callable values
✓ it can be passed a mixture of value types
✓ it works with traversables
PASS Tests\Features\Expect\toBe
✓ strict comparisons
@ -1194,4 +1196,4 @@
WARN Tests\Visual\Version
- visual snapshot of help command output
Tests: 2 deprecated, 4 warnings, 5 incomplete, 2 notices, 13 todos, 19 skipped, 844 passed (1947 assertions)
Tests: 2 deprecated, 4 warnings, 5 incomplete, 2 notices, 13 todos, 19 skipped, 845 passed (1965 assertions)