Duplicate tests that are run twice as both C and C++ tests to fix parallel make: keyword_rename

This commit is contained in:
William S Fulton 2016-02-21 13:23:53 +00:00
commit 78b113558f
5 changed files with 32 additions and 1 deletions

View file

@ -0,0 +1,12 @@
require("import") -- the import fn
import("keyword_rename_c") -- import lib into global
kn=keyword_rename_c--alias
-- catching undefined variables
local env = _ENV -- Lua 5.2
if not env then env = getfenv () end -- Lua 5.1
setmetatable(env, {__index=function (t,i) error("undefined global variable `"..i.."'",2) end})
-- Check renaming of Lua keywords
assert(kn.c_end(5) == 5)
assert(kn.c_nil(7) == 7)