Skip to content

Commit

Permalink
FormatTests: up visits level to 2000, skip below
Browse files Browse the repository at this point in the history
  • Loading branch information
kitbellew committed Oct 28, 2024
1 parent 1d49bdf commit 4a212ab
Showing 1 changed file with 9 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,15 @@ class FormatTests extends FunSuite with CanRunTests with FormatAssertions {
val actual1 = completedEvent.totalExplored
val actual2 = dbgOpt2.flatMap(_.completedEvent)
.fold(actual1)(_.totalExplored)
val actual = (actual1, actual2)
def error = s"stateVisits = $actual1, stateVisits2 = $actual2"
visitsOpt1 match {
case Some(visits1) =>
val expected = (visits1, visitsOpt2.getOrElse(visits1))
assertEquals(actual, expected, error)
case None => assert(
actual1 <= 800 && actual2 <= 800,
s"\nExpected test to assert: $error",
)
if (actual1 > 2000 || actual2 > 2000) {
def error = s"stateVisits = $actual1, stateVisits2 = $actual2"
visitsOpt1 match {
case Some(visits1) =>
val actual = (actual1, actual2)
val expected = (visits1, visitsOpt2.getOrElse(visits1))
assertEquals(actual, expected, error)
case None => fail(s"\nExpected test to assert: $error")
}
}
}
var debug2Opt: Option[Debug] = None
Expand Down

0 comments on commit 4a212ab

Please sign in to comment.