[View] [Edit] [Lock] [References] [Attachments] [History] [Home] [Changes] [Search] [Help]
test[m8n] 80 NativeObject
-- setup
test= ("NativeObject @#{package}"):evaluate()
-- accessing properties
if ("(NativeObject @#{package}) ownPropertyNames sorted first ~= #config"):evaluate() then error("Wrong package API") end
if (test:_at("loaded")["io"]==nil) then error("Missing io standard library") end
-- converting
if (test:asDictionary():includesKey_("path")~=true) then error("Must be true") end
-- cleanup
test = nil