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.
17 lines
437 B
17 lines
437 B
9 years ago
|
local lpeg = require 'lpeg'
|
||
|
assert(((lpeg.R('AZ'))^1):match("TEXT") == 5)
|
||
|
|
||
|
local http = require "socket.http"
|
||
|
assert(http.request("http://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")
|