From 73139f88ca1ac3865b766f6f92d07ecd71210dd0 Mon Sep 17 00:00:00 2001 From: Peter Cawley Date: Wed, 19 Oct 2016 21:04:50 +0100 Subject: [PATCH] Disable some tests under 5.2 compatibility --- test/lib/contents.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/lib/contents.lua b/test/lib/contents.lua index 0328c98917..a1d8b9b982 100644 --- a/test/lib/contents.lua +++ b/test/lib/contents.lua @@ -54,7 +54,7 @@ do --- math check(math, "abs:acos:asin:atan:atan2:ceil:cos:cosh:deg:exp:floor:fmod:frexp:huge:ldexp:log:max:min:modf:pi:pow:rad:random:randomseed:sin:sinh:sqrt:tan:tanh", "log10:mod") end -do --- pre-5.2 math +lua<5.2 +do --- pre-5.2 math +lua<5.2 -compat5.2 assert(math.mod) assert(math.log10) end @@ -68,7 +68,7 @@ do --- string check(string, "byte:char:dump:find:format:gmatch:gsub:len:lower:match:rep:reverse:sub:upper", "gfind") end -do --- pre-5.2 string +lua<5.2 +do --- pre-5.2 string +lua<5.2 -compat5.2 assert(string.gfind) end