[View]  [Edit]  [Lock]  [References]  [Attachments]  [History]  [Home]  [Changes]  [Search]  [Help] 

test[m8n] 80 Lua

-- setup
test=smalltalk.Lua:global()


--version and command line
if (smalltalk.Lua:version()~="Lua 5.1") then error("Lua 5.1 expected") end
print("Command line = "..(smalltalk.Lua:arg()):printString())


-- accessing
if (smalltalk.Lua:_at(os):propertyNames():includes_("date")~=true) then error("Must include date function") end


-- cleanup
test = nil