Skip to content

Commit

Permalink
tests: fix rom tests for set.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
Erb3 committed Jul 9, 2024
1 parent 15f73f4 commit 540834c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ describe("The set program", function()
setup()

expect(capture("set"))
:matches { ok = true, output = '"test" is "Hello World!"\n"test.defined" is 456\n', error = "" }
:matches { ok = true, output = 'test is "Hello World!"\ntest.defined is 456\n', error = "" }
end)

it("displays a single setting", function()
Expand Down Expand Up @@ -47,7 +47,7 @@ describe("The set program", function()
setup()

expect(capture("set test Hello"))
:matches { ok = true, output = '"test" set to "Hello"\n', error = "" }
:matches { ok = true, output = 'test set to "Hello"\n', error = "" }

expect(settings.get("test")):eq("Hello")
end)
Expand All @@ -58,6 +58,6 @@ describe("The set program", function()
expect(capture("set test.defined Hello"))
:matches { ok = true, output = "", error = '"Hello" is not a valid number.\n' }
expect(capture("set test.defined 456"))
:matches { ok = true, output = '"test.defined" set to 456\n', error = "" }
:matches { ok = true, output = 'test.defined set to 456\n', error = "" }
end)
end)

0 comments on commit 540834c

Please sign in to comment.