Skip to content
Snippets Groups Projects
Commit 364410c9 authored by Etienne Kneuss's avatar Etienne Kneuss
Browse files

Hide passes from results, but include it in leon as it is purescala

parent b166dee3
Branches
Tags
No related merge requests found
...@@ -28,6 +28,7 @@ package object lang { ...@@ -28,6 +28,7 @@ package object lang {
@ignore @ignore
def error[T](reason: String): T = sys.error(reason) def error[T](reason: String): T = sys.error(reason)
@library
def passes[A, B](in: A, out: B)(tests: Map[A,B]): Boolean = { def passes[A, B](in: A, out: B)(tests: Map[A,B]): Boolean = {
if (tests contains in) { if (tests contains in) {
tests(in) == out tests(in) == out
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment