Skip to content

Commit

Permalink
Test cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
gaelrenoux committed Jun 13, 2024
1 parent 0570f64 commit ece46c0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 72 deletions.
62 changes: 0 additions & 62 deletions src/test-slow/scala/fr/renoux/gaston/itests/EngineSpec.scala

This file was deleted.

20 changes: 10 additions & 10 deletions src/test-slow/scala/fr/renoux/gaston/itests/PastUsesSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ class PastUsesSpec extends AnyFlatSpec with Matchers with PrivateMethodTester wi
result.score.value should be > 0.0
}

it should "return a great result after 100 schedules" in {
val (result, count) = run(udocon2017, 100)
it should "return a great result after 1000 schedules" in {
val (result, count) = run(udocon2017, 1000)
println(result.toFormattedString)
println(count)
count should be(100L)
count should be(1000L)
result.score.value should be > 729.0
}

Expand All @@ -58,11 +58,11 @@ class PastUsesSpec extends AnyFlatSpec with Matchers with PrivateMethodTester wi
result.score.value should be > 0.0
}

it should "return a great result after 100 schedules" in {
val (result, count) = run(udocon2019, 100)
it should "return a great result after 1000 schedules" in {
val (result, count) = run(udocon2019, 1000)
println(result.toFormattedString)
println(count)
count should be(100L)
count should be(1000L)
result.score.value should be > 970.0
}

Expand All @@ -71,14 +71,14 @@ class PastUsesSpec extends AnyFlatSpec with Matchers with PrivateMethodTester wi
println(result.toFormattedString)
println(count)
count should be(10L)
result.score.value should be > 0.0
// result.score.value should be > 0.0 // Bad starting score, as it's all unassigned
}

it should "return a great result after 100 schedules" in {
val (result, count) = run(r32019, 100)
it should "return a great result after 1000 schedules" in {
val (result, count) = run(r32019, 1000)
println(result.toFormattedString)
println(count)
count should be(100L)
count should be(1000L)
result.score.value should be > 970.0
}

Expand Down

0 comments on commit ece46c0

Please sign in to comment.