File: test.lua

package info (click to toggle)
weakforced 3.0.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,040 kB
  • sloc: cpp: 20,397; python: 2,002; sh: 700; makefile: 432
file content (10 lines) | stat: -rw-r--r-- 306 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
-- Test if we are actually running the OpenResty fork of LuaJIT
-- isempty() is an OpenResty extension: https://github.com/openresty/luajit2#tableisempty
local isempty = require "table.isempty"
print(isempty({}))

-- vendor packages, tests search path
require "socket"
require "elasticsearch"

print("OK")