Commit a0b57305 authored by Romain Reuillon's avatar Romain Reuillon

Lazy assert

parent 8f2ce560
......@@ -281,7 +281,10 @@ class World3(constants: Constants) {
tock()
}
assert(all.forall(_.k.isDefined))
lazy val wrong = all.filter(!_.k.isDefined)
assert(wrong.isEmpty, s"Some variables have not been properly initialized: ${wrong.map(_.qName)}")
}
def exec() = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment