|
|
@ -27,6 +27,18 @@ end
|
|
|
|
function expect.ne(a, b, comment)
|
|
|
|
function expect.ne(a, b, comment)
|
|
|
|
return a ~= b, comment, ('%s == %s'):format(a, b)
|
|
|
|
return a ~= b, comment, ('%s == %s'):format(a, b)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
function expect.lt(a, b, comment)
|
|
|
|
|
|
|
|
return a < b, comment, ('%s >= %s'):format(a, b)
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
function expect.le(a, b, comment)
|
|
|
|
|
|
|
|
return a <= b, comment, ('%s > %s'):format(a, b)
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
function expect.gt(a, b, comment)
|
|
|
|
|
|
|
|
return a > b, comment, ('%s <= %s'):format(a, b)
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
function expect.ge(a, b, comment)
|
|
|
|
|
|
|
|
return a >= b, comment, ('%s < %s'):format(a, b)
|
|
|
|
|
|
|
|
end
|
|
|
|
function expect.table_eq(a, b, comment)
|
|
|
|
function expect.table_eq(a, b, comment)
|
|
|
|
local checked = {}
|
|
|
|
local checked = {}
|
|
|
|
for k, v in pairs(a) do
|
|
|
|
for k, v in pairs(a) do
|
|
|
|