You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mxe/plugins/luarocks/test.lua

17 lines
439 B

local lpeg = require 'lpeg'
assert(((lpeg.R('AZ'))^1):match("TEXT") == 5)
local http = require "socket.http"
assert(http.request("https://mxe.cc/"):match('MXE'))
local ll = require 'llthreads2'
local thread = ll.new("return 123")
thread:start()
local ok, result = thread:join()
assert(ok)
assert(result == 123)
local rapidjson = require 'rapidjson'
assert(rapidjson.encode(123) == '123')
assert(rapidjson.decode('["xyz"]')[1] == "xyz")