From 18da4efd184f78277215cdfbf3d25cd607c40162 Mon Sep 17 00:00:00 2001 From: Simon Parten Date: Tue, 14 Nov 2023 16:53:17 +0100 Subject: [PATCH] Hmmm --- core/js/src/main/scala/vecxt/array.extensions.scala | 2 +- tests/shared/src/test/scala/arrayExtensions.test.scala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/js/src/main/scala/vecxt/array.extensions.scala b/core/js/src/main/scala/vecxt/array.extensions.scala index 0cc7be9..e3eae9c 100644 --- a/core/js/src/main/scala/vecxt/array.extensions.scala +++ b/core/js/src/main/scala/vecxt/array.extensions.scala @@ -361,7 +361,7 @@ package object vecxt: end extension - extension (vec: js.Array[Float64Array]) + extension (vec: Array[Float64Array]) inline def horizontalSum: Float64Array = val out = new Float64Array(vec.head.length) var i = 0 diff --git a/tests/shared/src/test/scala/arrayExtensions.test.scala b/tests/shared/src/test/scala/arrayExtensions.test.scala index 0202fa1..9aa8305 100644 --- a/tests/shared/src/test/scala/arrayExtensions.test.scala +++ b/tests/shared/src/test/scala/arrayExtensions.test.scala @@ -30,7 +30,7 @@ class ArrayExtensionSuite extends munit.FunSuite: val v2 = v1 * 2.0 val v3 = v1 * 3.0 - val l = NArray(v1, v2, v3) + val l = Array(v1, v2, v3) val summed = l.horizontalSum assert(summed(0) == 1 + 2 + 3)