Skip to content

Commit

Permalink
Update unit tests and fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
bugarela committed Aug 15, 2023
1 parent dd49571 commit f21ab5b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ tla-io/src/test/resources/tictactoe.json:

TEMP_QNT_CS_FILE := $(shell mktemp)
tla-io/src/test/resources/clockSync3.json:
curl https://raw.githubusercontent.com/informalsystems/quint/main/examples/classic/distributed/ClockSync/clockSync3.qnt > $(TEMP_QNT_TTT_FILE)
curl https://raw.githubusercontent.com/informalsystems/quint/main/examples/classic/distributed/ClockSync/clockSync3.qnt > $(TEMP_QNT_CS_FILE)
quint typecheck --out $@ $(TEMP_QNT_CS_FILE)
rm $(TEMP_QNT_CS_FILE)

Expand Down
2 changes: 1 addition & 1 deletion tla-io/src/test/resources/clockSync3.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class TestQuintEx extends AnyFunSuite {
def app(name: String, args: QuintEx*)(retType: QuintType, refId: BigInt = -1): QuintApp = {
val id = uid
if (refId != -1) {
lookupMap += (id -> QuintLookupTableEntry("def", refId))
lookupMap += (id -> QuintLookupTableEntry("def", refId, name))
}
e(QuintApp(id, name, args), retType)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class TestQuintIR extends AnyFunSuite {
test("Can load clockSync3.json") {
val clockSync3QuintJson = scala.io.Source.fromResource("clockSync3.json").mkString
val quintIR = QuintOutput.read(clockSync3QuintJson).get
assert(quintIR.modules(0).name == "ClockSync3")
assert(quintIR.modules(0).name == "clockSync3")
}

test("Invalid JSON returns sensible error") {
Expand Down

0 comments on commit f21ab5b

Please sign in to comment.