From 114492817ad7620af02554fdd763749a728f7c32 Mon Sep 17 00:00:00 2001 From: ralferlebach Date: Sat, 19 Oct 2024 12:54:54 +0200 Subject: [PATCH] Update mathcat_test.php --- tests/mathcat_test.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/mathcat_test.php b/tests/mathcat_test.php index 9de701825..95c2cca11 100644 --- a/tests/mathcat_test.php +++ b/tests/mathcat_test.php @@ -65,7 +65,7 @@ public function test_newton_raphson_multi_stable(): void { * @return void */ public function test_conversion_of_array_to_vector($given, $expected, $structure): void { - $array = $old; + $array = $given; $arraystructure = mathcat::array_to_vector($array); $this->assertEquals($arraystructure, $structure); @@ -78,7 +78,7 @@ public function test_conversion_of_array_to_vector($given, $expected, $structure * * @return array */ - public static function conversion_of_array_to_vector_provider(): array { + public static function conversionofarraytovectorprovider(): array { return [ // Simple cases: int, float, linear indexed array, linear assoc array. 'int' => ['given' => [9], 'expected' => [9.0], 'structure' => [0 => 0]],