Skip to content

Commit

Permalink
add test to CI and remove control block to avoid needless solver call
Browse files Browse the repository at this point in the history
  • Loading branch information
FedericoAureliano authored and polgreen committed Jul 17, 2024
1 parent 601752b commit f4fae77
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 5 additions & 0 deletions src/test/scala/ParserSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,11 @@ class ParserSpec extends AnyFlatSpec {
assert (p.errors.size > 0)
}
}
"test-record-rename.ucl" should "parse successfully" in {
val fileModules = UclidMain.compile(ConfigCons.createConfig("test/test-record-rename.ucl"), lang.Identifier("main"))
val instantiatedModules = UclidMain.instantiateModules(UclidMain.Config(), fileModules, lang.Identifier("main"))
assert (instantiatedModules.size == 1)
}
"test-type1.ucl" should "not parse successfully." in {
try {
val filename = "test/test-type1.ucl"
Expand Down
6 changes: 0 additions & 6 deletions test/test-record-rename.ucl
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,4 @@ module main {
init {
assert forall (x: r) :: x.y > 0;
}

control {
unroll(0);
check;
print_results;
}
}

0 comments on commit f4fae77

Please sign in to comment.