From 4544f5c3b4a5e16cf56988d64fcd6d01d7efec42 Mon Sep 17 00:00:00 2001 From: Smoren Date: Tue, 19 Mar 2024 09:47:27 +0300 Subject: [PATCH] In progress... --- tests/unit/ArrayView/ReadTest.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/unit/ArrayView/ReadTest.php b/tests/unit/ArrayView/ReadTest.php index e48250a..bd14296 100644 --- a/tests/unit/ArrayView/ReadTest.php +++ b/tests/unit/ArrayView/ReadTest.php @@ -84,7 +84,7 @@ public function testMatchAndFilter(array $source, callable $predicate, array $ex */ public function testMatchWith( array $source, - array $another, + $another, callable $comparator, array $expectedMask, array $expectedArray @@ -502,6 +502,13 @@ public function dataProviderForMatchWith(): array [true, false, true, true, true, true, true, true, false, true], [1, 3, 4, 5, 6, 7, 8, 10], ], + [ + [1, 2, 3], + 1, + fn (int $lhs, int $rhs) => $lhs > $rhs, + [false, true, true], + [1, 3, 4, 5, 6, 7, 8, 10], + ], ]; }