luajitos

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

test.lua (443B)


      1 --[[ MANIFEST
      2     name = "Test Script"
      3     permissions = {"filesystem", "crypto"}
      4 --]]
      5 
      6 osprint("Test OSPrint")
      7 print("Hi from TEST PROGRAM!")
      8 
      9 function testTable(tab, tabname)
     10     if tab then
     11         for k,v in pairs(tab) do
     12             print(tabname, k, v)
     13         end
     14     else
     15         print("no "..tabname)
     16     end
     17 end
     18 
     19 testTable(crypto, "crypto")
     20 testTable(fs, "fs")
     21 testTable(sys, "sys")
     22 testTable(app, "app")
     23 testTable(window, "window")