21 lines
539 B
Plaintext
21 lines
539 B
Plaintext
global describe: function(string, function)
|
|
global it: function(string, function)
|
|
|
|
-- Teal generates an empty table for record declaration.
|
|
-- For now we'll bypass any usage of the assert module and
|
|
-- use the global assert function instead.
|
|
|
|
-- global record assert
|
|
-- are_equal: function(any, any)
|
|
-- end
|
|
|
|
describe("Teal tests", function()
|
|
it("works", function()
|
|
-- This is a Teal specific syntax.
|
|
local a: number = 1
|
|
|
|
assert(a == 1, "This test uses Teal's syntax!")
|
|
-- assert.are_equal(a, 1)
|
|
end)
|
|
end)
|