Tests for enum/consts old-style bindings and for static const char; bindings

This commit is contained in:
Artem Serebriyskiy 2013-11-07 20:26:27 +04:00 • committed by William S Fulton
commit b901979d1c
3 changed files with 28 additions and 0 deletions

View file

@ -10,8 +10,12 @@ setmetatable(env, {__index=function (t,i) error("undefined global variable `"..i
assert(scm.X.PN == 0)
assert(scm.X.CN == 1)
assert(scm.X.EN == 2)
assert(scm.X.CHARTEST == "A")
-- Old-style bindings
assert(scm.X_PN == 0)
assert(scm.X_CN == 1)
assert(scm.X_EN == 2)
assert(scm.X_CHARTEST == "A")