Add test for pallenec_abort()
@@ -42,4 +42,10 @@ describe("pallenec", function()
local s, err = util.get_file_contents("test.s")
assert(s, err)
end)
+
+ it("Can detect conflicting arguments", function()
+ local ok, err, out, abortMssg = util.outputs_of_execute("./pallenec --emit-c --emit-asm test.pln")
+ assert.is_false(ok, err)
+ assert.equals("./pallenec:flags --emit-c and --emit-s are mutually exclusive\n", abortMssg)
+ end)
end)
