Skip to content

Commit

Permalink
fix ClauseCollectionTests
Browse files Browse the repository at this point in the history
  • Loading branch information
gciatto committed May 25, 2020
1 parent 6c8e57f commit 7313e29
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 6 deletions.
4 changes: 2 additions & 2 deletions test-solve/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Project specific kotlin multiplatform configuration
kotlin {

sourceSets {
Expand Down Expand Up @@ -32,7 +31,8 @@ kotlin {

js {

val main = compilations["main"]

val main = compilations["main"]
val test = compilations["test"]

main.defaultSourceSet {
Expand Down
11 changes: 10 additions & 1 deletion theory/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Project specific kotlin multiplatform configuration
val mochaTimeout: String by project

kotlin {

sourceSets {
Expand All @@ -20,6 +21,14 @@ kotlin {
}

js {
nodejs {
testTask {
useMocha {
timeout = mochaTimeout
}
}
}

compilations["main"].defaultSourceSet {
dependencies {
// api(project(":core"))
Expand Down
2 changes: 2 additions & 0 deletions theory/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# mocha timeout for a single test method, in milli-seconds
mochaTimeout=30000
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ protected constructor(
override fun add(clause: Clause): Self =
newCollectionBuilder(
rete.deepCopy().apply {
assertA(Theory.checkClauseCorrect(clause))
assertZ(Theory.checkClauseCorrect(clause))
}
)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package it.unibo.tuprolog.collections

import it.unibo.tuprolog.core.Clause

internal interface PrototypeClauseCollectionTest {

fun collectionHasTheCorrectSize()
Expand Down

0 comments on commit 7313e29

Please sign in to comment.