update for step tests to new protocol for 'checker.check'
@@ -174,7 +174,7 @@ describe("Titan code generator", function()
]]
local ast, err = parser.parse(code)
assert.truthy(ast, err)
- local ok, err = checker.check(ast, code, "test.titan")
+ local ok, err = checker.check("test", ast, code, "test.titan")
assert.truthy(ok, err)
local ok, err = generate(ast, "titan_test")
assert.truthy(ok, err)
@@ -182,7 +182,7 @@ describe("Titan code generator", function()
assert.truthy(ok, err)
end)
- it("tests float postive literals in 'for'", function()
+ it("tests float positive literals in 'for'", function()
local code = [[
function forstep(): float
local v: float = 0
@@ -194,7 +194,7 @@ describe("Titan code generator", function()
]]
local ast, err = parser.parse(code)
assert.truthy(ast, err)
- local ok, err = checker.check(ast, code, "test.titan")
+ local ok, err = checker.check("test", ast, code, "test.titan")
assert.truthy(ok, err)
local ok, err = generate(ast, "titan_test")
assert.truthy(ok, err)
@@ -214,7 +214,7 @@ describe("Titan code generator", function()
]]
local ast, err = parser.parse(code)
assert.truthy(ast, err)
- local ok, err = checker.check(ast, code, "test.titan")
+ local ok, err = checker.check("test", ast, code, "test.titan")
assert.truthy(ok, err)
local ok, err = generate(ast, "titan_test")
assert.truthy(ok, err)
