fix tests

This commit is contained in:
Vadim A. Misbakh-Soloviov
2017-04-09 13:59:14 +07:00
parent c943629e1f
commit a7ae1ec77b
2 changed files with 11 additions and 7 deletions

View File

@@ -8,16 +8,19 @@ print("Lua version: " .. (jit and jit.version or _VERSION))
print("------------------------------------")
print("")
local HAS_RUNNER = not not lunitx
local lunitx = require("lunitx")
local HAS_RUNNER = not not lunit
local lunitx
if not HAS_RUNNER then
lunitx = require"lunitx"
else
lunitx = require"lunit"
end
local TEST_CASE = lunitx.TEST_CASE
local LUA_VER = _VERSION
local unpack, pow, bit32 = unpack, math.pow, bit32
local _ENV = TEST_CASE"some_test_case"
module("html", lunitx.testcase, package.seeall)
local _ENV = TEST_CASE"html"
local htmlparser = require("htmlparser")