2020-12-23 07:02:02 +01:00
|
|
|
|
|
|
|
describe("smr imageboard parser",function()
|
|
|
|
it("should load without error",function()
|
|
|
|
local parser = require("parser_imageboard")
|
|
|
|
end)
|
|
|
|
it("should accept a string and return a string",function()
|
|
|
|
local parser = require("parser_imageboard")
|
|
|
|
local input = "Hello, world!"
|
|
|
|
local output = parser(input)
|
2021-01-16 22:01:31 +01:00
|
|
|
assert(type(output) == "string","Expected string, got: %s",type(output))
|
2020-12-23 07:02:02 +01:00
|
|
|
end)
|
|
|
|
end)
|