diff --git a/kmath-geometry/build.gradle.kts b/kmath-geometry/build.gradle.kts index 7eb814683..653d113a6 100644 --- a/kmath-geometry/build.gradle.kts +++ b/kmath-geometry/build.gradle.kts @@ -4,6 +4,20 @@ plugins { id("ru.mipt.npm.gradle.native") } +kotlin.js { + nodejs { + testTask { + useMocha().timeout = "5000" + } + } + + browser { + testTask { + useMocha().timeout = "5000" + } + } +} + kotlin.sourceSets.commonMain { dependencies { api(project(":kmath-core")) diff --git a/kmath-geometry/src/commonTest/kotlin/space/kscience/kmath/geometry/ProjectionAlongTest.kt b/kmath-geometry/src/commonTest/kotlin/space/kscience/kmath/geometry/ProjectionAlongTest.kt index cc940035f..78ce98dc4 100644 --- a/kmath-geometry/src/commonTest/kotlin/space/kscience/kmath/geometry/ProjectionAlongTest.kt +++ b/kmath-geometry/src/commonTest/kotlin/space/kscience/kmath/geometry/ProjectionAlongTest.kt @@ -42,9 +42,10 @@ internal class ProjectionAlongTest { val base = Vector3D(2.0, -0.0037, 11.1111) with(Euclidean3DSpace) { - for (x in (-10.0..10.0).generateList(0.15)) { - for (y in (-10.0..10.0).generateList(0.15)) { - for (z in (-10.0..10.0).generateList(0.15)) { + val testDomain = (-10.0..10.0).generateList(0.15) + for (x in testDomain) { + for (y in testDomain) { + for (z in testDomain) { val v = Vector3D(x, y, z) val result = projectAlong(v, normal, base) diff --git a/kmath-geometry/src/commonTest/kotlin/space/kscience/kmath/geometry/ProjectionOntoLineTest.kt b/kmath-geometry/src/commonTest/kotlin/space/kscience/kmath/geometry/ProjectionOntoLineTest.kt index 1190b156d..ec74ff59b 100644 --- a/kmath-geometry/src/commonTest/kotlin/space/kscience/kmath/geometry/ProjectionOntoLineTest.kt +++ b/kmath-geometry/src/commonTest/kotlin/space/kscience/kmath/geometry/ProjectionOntoLineTest.kt @@ -64,9 +64,10 @@ internal class ProjectionOntoLineTest { ) with(Euclidean3DSpace) { - for (x in (-10.0..10.0).generateList(0.15)) { - for (y in (-10.0..10.0).generateList(0.15)) { - for (z in (-10.0..10.0).generateList(0.15)) { + val testDomain = (-10.0..10.0).generateList(0.15) + for (x in testDomain) { + for (y in testDomain) { + for (z in testDomain) { val v = Vector3D(x, y, z) val result = projectToLine(v, line)