From d7ca47b5f87aed4f608944cd43002ec0ed045513 Mon Sep 17 00:00:00 2001 From: he426100 <9689137+he426100@users.noreply.github.com> Date: Mon, 25 Dec 2023 23:58:03 +0800 Subject: [PATCH] fix --- tests/phpunit/CollectionsTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/CollectionsTest.php b/tests/phpunit/CollectionsTest.php index a62b949..45e689f 100644 --- a/tests/phpunit/CollectionsTest.php +++ b/tests/phpunit/CollectionsTest.php @@ -20,6 +20,6 @@ public function testCounter() $words = ['red', 'blue', 'red', 'green', 'blue', 'blue']; $word_counts = $Counter($words); - $this->assertEquals(PyCore::dict($word_counts), PyCore::dict(['blue' => 3, 'red' => 2, 'green' => 1])); + $this->assertEquals(['blue' => 3, 'red' => 2, 'green' => 1], [...PyCore::dict($word_counts)]); } }