diff --git a/kmath-gsl/src/nativeTest/kotlin/GslMatrixTest.kt b/kmath-gsl/src/nativeTest/kotlin/GslMatrixRealTest.kt similarity index 60% rename from kmath-gsl/src/nativeTest/kotlin/GslMatrixTest.kt rename to kmath-gsl/src/nativeTest/kotlin/GslMatrixRealTest.kt index 71d951f63..b4ea4adb2 100644 --- a/kmath-gsl/src/nativeTest/kotlin/GslMatrixTest.kt +++ b/kmath-gsl/src/nativeTest/kotlin/GslMatrixRealTest.kt @@ -3,11 +3,17 @@ package kscience.kmath.gsl import kotlin.test.Test import kotlin.test.assertEquals -internal class GslMatrixTest { +internal class GslMatrixRealTest { @Test fun dimensions() = GslRealMatrixContext { val mat = produce(42, 24) { _, _ -> 0.0 } assertEquals(42, mat.rowNum) assertEquals(24, mat.colNum) } + + @Test + fun get() = GslRealMatrixContext { + val mat = produce(1, 1) { _, _ -> 42.0 } + assertEquals(42.0, mat[0, 0]) + } } diff --git a/kmath-gsl/src/nativeTest/kotlin/RealTest.kt b/kmath-gsl/src/nativeTest/kotlin/GslRealContextTest.kt similarity index 98% rename from kmath-gsl/src/nativeTest/kotlin/RealTest.kt rename to kmath-gsl/src/nativeTest/kotlin/GslRealContextTest.kt index 87c52342a..9ee543a13 100644 --- a/kmath-gsl/src/nativeTest/kotlin/RealTest.kt +++ b/kmath-gsl/src/nativeTest/kotlin/GslRealContextTest.kt @@ -12,7 +12,7 @@ import kotlin.test.assertEquals import kotlin.test.assertTrue import kotlin.time.measureTime -internal class RealTest { +internal class GslRealContextTest { @Test fun testScale() = GslRealMatrixContext { val ma = produce(10, 10) { _, _ -> 0.1 }