Skip to content

Commit

Permalink
test: fix more significative test
Browse files Browse the repository at this point in the history
  • Loading branch information
angelacorte committed Nov 13, 2024
1 parent 9bfb637 commit 4b88663
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions dsl/src/commonTest/kotlin/it/unibo/collektive/path/PathTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ import io.kotest.matchers.shouldBe
import it.unibo.collektive.path.impl.PathImpl

class PathTest : StringSpec({
"Should be able to generate 1 million different paths" {
val seq = generateSequence(1) { it + 1 }.take(1_000_000)
seq.count() shouldBe 1_000_000
val res = seq.map { PathImpl.of(listOf(it)) }
res.count() shouldBe 1_000_000
"Should be able to generate 1 million different paths without running out of memory" {
val paths = generateSequence(1) { it + 1 }
.take(1_000_000)
.map { PathImpl.of(listOf(it)) }
paths.count() shouldBe 1_000_000
}
})
})

0 comments on commit 4b88663

Please sign in to comment.