Remove extra print statements.
This commit is contained in:
parent
73df8d400e
commit
58565bc088
|
@ -108,13 +108,12 @@ describe("smr imageboard parser #parsers",function()
|
||||||
local start_time = os.clock()
|
local start_time = os.clock()
|
||||||
local output = parser(input)
|
local output = parser(input)
|
||||||
local end_time = os.clock()
|
local end_time = os.clock()
|
||||||
print(end_time - start_time)
|
|
||||||
assert(end_time - start_time < 1, "Took too long")
|
assert(end_time - start_time < 1, "Took too long")
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
for i = 1, 80 do
|
for i = 1, 50 do
|
||||||
it("Should withstand a random string of " .. i .. " formatters and words. ",function()
|
it("Should withstand a random string of " .. i .. " formatters and words. ",function()
|
||||||
local parser = require("parser_imageboard")
|
local parser = require("parser_imageboard")
|
||||||
local input = {}
|
local input = {}
|
||||||
|
@ -143,12 +142,9 @@ describe("smr imageboard parser #parsers",function()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
input = random_text_recursive(i)
|
input = random_text_recursive(i)
|
||||||
print("input is:",input)
|
|
||||||
local start_time = os.clock()
|
local start_time = os.clock()
|
||||||
local output = parser(input)
|
local output = parser(input)
|
||||||
print("output is:",output)
|
|
||||||
local end_time = os.clock()
|
local end_time = os.clock()
|
||||||
print(end_time - start_time)
|
|
||||||
assert(end_time - start_time < 1, "Took too long")
|
assert(end_time - start_time < 1, "Took too long")
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue