diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index d8d8c3fe..f94f6244 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -24,7 +24,7 @@ jobs: :test:jvmTest :test:linuxX64Test :colormath:compileKotlinLinuxArm64 - :colormath:wasmJsTest + :colormath:compileKotlinWasmJs :extensions:colormath-ext-jetpack-compose:check :extensions:colormath-ext-android-colorint:check :extensions:colormath-ext-android-color:check diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 98f05b49..07261bcc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,7 +22,7 @@ jobs: :test:jvmTest :test:linuxX64Test :colormath:compileKotlinLinuxArm64 - :colormath:wasmJsTest + :colormath:compileKotlinWasmJs :extensions:colormath-ext-jetpack-compose:check :extensions:colormath-ext-android-colorint:check :extensions:colormath-ext-android-color:check diff --git a/colormath/src/commonTest/kotlin/com/github/ajalt/colormath/internal/MatrixTest.kt b/colormath/src/commonTest/kotlin/com/github/ajalt/colormath/internal/MatrixTest.kt index d48aa20d..ac42d792 100644 --- a/colormath/src/commonTest/kotlin/com/github/ajalt/colormath/internal/MatrixTest.kt +++ b/colormath/src/commonTest/kotlin/com/github/ajalt/colormath/internal/MatrixTest.kt @@ -58,6 +58,8 @@ class MatrixTest { } // TODO(kotest): go back to kotest once is supports wasm -private infix fun Any?.shouldBe(other: Any?) { - assertEquals(other, this) +private infix fun FloatArray.shouldBe(other: FloatArray) { + for (i in indices) { + assertEquals(this[i], other[i], 0.00000001f, "index $i") + } }