increased test timeouts in geometry project

This commit is contained in:
Veniamin Viflyantsev 2021-08-17 21:10:26 +03:00
parent 9023098090
commit 603db46eb8
3 changed files with 22 additions and 6 deletions

View File

@ -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"))

View File

@ -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)

View File

@ -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)