basic testing table
This commit is contained in:
parent
62866ee36c
commit
124ec51da3
2 changed files with 83 additions and 52 deletions
117
!_G.yml
117
!_G.yml
|
@ -1,22 +1,22 @@
|
|||
__root__: &t0xc4e478
|
||||
__root__: &t0x8ec478
|
||||
_VERSION: "Lua 5.2"
|
||||
add_zeros: f0xc56f38
|
||||
add_zeros: f0x8ec3f0
|
||||
assert: f0x1fefc
|
||||
collectgarbage: f0x1f930
|
||||
dofile: f0x1fe7c
|
||||
dump: f0xc578c0
|
||||
dump: f0x8f1410
|
||||
error: f0x1f8c0
|
||||
getaddr: f0xc53f00
|
||||
getaddr: f0x8f4c30
|
||||
getmetatable: f0x1fe2c
|
||||
ipairs: f0x1fd24
|
||||
load: f0x1ff54
|
||||
loadfile: f0x1fd80
|
||||
loadstring: f0x1ff54
|
||||
mixed_sorter: f0xc56ef0
|
||||
module: f0xc4ee20
|
||||
mixed_sorter: f0x8f1c28
|
||||
module: f0x8ece20
|
||||
next: f0x1f7ac
|
||||
opairs: f0xc53630
|
||||
order_keys: f0xc56ea8
|
||||
opairs: f0x8f4da0
|
||||
order_keys: f0x8f4cc0
|
||||
pairs: f0x1fd04
|
||||
pcall: f0x1fb50
|
||||
print: f0x1f66c
|
||||
|
@ -24,21 +24,21 @@ __root__: &t0xc4e478
|
|||
rawget: f0x1f598
|
||||
rawlen: f0x1f5d8
|
||||
rawset: f0x1f54c
|
||||
rawstr: f0xc56e60
|
||||
require: f0xc4fb00
|
||||
rawstr: f0x8f4c78
|
||||
require: f0x8edb00
|
||||
select: f0x1f444
|
||||
setmetatable: f0x1fbc0
|
||||
strpad: f0xc52890
|
||||
strpad: f0x8f34e8
|
||||
tonumber: f0x1f25c
|
||||
tostring: f0x1f234
|
||||
type: f0x1f1f8
|
||||
unpack: f0x26598
|
||||
xpcall: f0x1fa84
|
||||
_G: *t0xc4e478
|
||||
arg: &t0xc526b8
|
||||
_G: *t0x8ec478
|
||||
arg: &t0x8f06b8
|
||||
"-1": "/usr/bin/lua"
|
||||
0: "./run.lua"
|
||||
bit32: &t0xc4f190
|
||||
bit32: &t0x8ed190
|
||||
arshift: f0x2022c
|
||||
band: f0x20458
|
||||
bnot: f0x20208
|
||||
|
@ -51,14 +51,14 @@ __root__: &t0xc4e478
|
|||
replace: f0x20338
|
||||
rrotate: f0x201c4
|
||||
rshift: f0x2015c
|
||||
coroutine: &t0xc4e998
|
||||
coroutine: &t0x8ec998
|
||||
create: f0x20844
|
||||
resume: f0x20934
|
||||
running: f0x20824
|
||||
status: f0x206cc
|
||||
wrap: f0x20888
|
||||
yield: f0x20584
|
||||
debug: &t0xc507c8
|
||||
debug: &t0x8ee7c8
|
||||
debug: f0x20e44
|
||||
gethook: f0x21470
|
||||
getinfo: f0x21674
|
||||
|
@ -75,7 +75,7 @@ __root__: &t0xc4e478
|
|||
traceback: f0x20ff8
|
||||
upvalueid: f0x20ca0
|
||||
upvaluejoin: f0x20cd8
|
||||
io: &t0xc4ffe8
|
||||
io: &t0x8edfe8
|
||||
close: f0x21c94
|
||||
flush: f0x22328
|
||||
input: f0x22a28
|
||||
|
@ -84,13 +84,13 @@ __root__: &t0xc4e478
|
|||
output: f0x22a0c
|
||||
popen: f0x2238c
|
||||
read: f0x222dc
|
||||
stderr: "file (0x76ee69d8)"
|
||||
stdin: "file (0x76ee6c98)"
|
||||
stdout: "file (0x76ee6b38)"
|
||||
stderr: "file (0x76e559d8)"
|
||||
stdin: "file (0x76e55c98)"
|
||||
stdout: "file (0x76e55b38)"
|
||||
tmpfile: f0x22c70
|
||||
type: f0x22890
|
||||
write: f0x21ba8
|
||||
math: &t0xc51a10
|
||||
math: &t0x8efa10
|
||||
abs: f0x22e48
|
||||
acos: f0x234c8
|
||||
asin: f0x234a4
|
||||
|
@ -121,7 +121,7 @@ __root__: &t0xc4e478
|
|||
sqrt: f0x22eb4
|
||||
tan: f0x22e6c
|
||||
tanh: f0x22e90
|
||||
os: &t0xc4fd90
|
||||
os: &t0x8edd90
|
||||
clock: f0x237d8
|
||||
date: f0x23ac0
|
||||
difftime: f0x23758
|
||||
|
@ -133,7 +133,7 @@ __root__: &t0xc4e478
|
|||
setlocale: f0x23580
|
||||
time: f0x23930
|
||||
tmpname: f0x23810
|
||||
package: &t0xc4ee90
|
||||
package: &t0x8ece90
|
||||
config: "\
|
||||
/\
|
||||
;\
|
||||
|
@ -146,35 +146,35 @@ __root__: &t0xc4e478
|
|||
path: "/usr/share/lua/5.2/?.lua;/usr/share/lua/5.2/?/init.lua;/usr/lib/lua/5.2/?.lua;/usr/lib/lua/5.2/?/init.lua;./?.lua"
|
||||
searchpath: f0x27ad4
|
||||
seeall: f0x273e0
|
||||
searchers: *t0xc4f5b0
|
||||
loaded: &t0xc4e948
|
||||
searchers: *t0x8ed5b0
|
||||
loaded: &t0x8ec948
|
||||
extra: true
|
||||
_G: *t0xc4e478
|
||||
bit32: *t0xc4f190
|
||||
coroutine: *t0xc4e998
|
||||
debug: *t0xc507c8
|
||||
io: *t0xc4ffe8
|
||||
math: *t0xc51a10
|
||||
os: *t0xc4fd90
|
||||
package: *t0xc4ee90
|
||||
string: *t0xc4f340
|
||||
table: *t0xc4fb68
|
||||
pt: &t0xc56a90
|
||||
__call: f0xc52a58
|
||||
inner: f0xc55c50
|
||||
outer: f0xc55ce8
|
||||
safekey: f0xc57890
|
||||
safeval: f0xc578a8
|
||||
write: f0xc56f08
|
||||
__index: *t0xc56a90
|
||||
__metatable: *t0xc56a90
|
||||
loaders: &t0xc4f5b0
|
||||
1: f0xc4f620
|
||||
2: f0xc4f648
|
||||
3: f0xc4f670
|
||||
4: f0xc4f698
|
||||
preload: &t0xc4f720
|
||||
string: &t0xc4f340
|
||||
_G: *t0x8ec478
|
||||
bit32: *t0x8ed190
|
||||
coroutine: *t0x8ec998
|
||||
debug: *t0x8ee7c8
|
||||
io: *t0x8edfe8
|
||||
math: *t0x8efa10
|
||||
os: *t0x8edd90
|
||||
package: *t0x8ece90
|
||||
string: *t0x8ed340
|
||||
table: *t0x8edb68
|
||||
pt: &t0x8f5be8
|
||||
__call: f0x8f12a0
|
||||
inner: f0x8f5a10
|
||||
outer: f0x8f4de0
|
||||
safekey: f0x8f1dc0
|
||||
safeval: f0x8ec230
|
||||
write: f0x8f3890
|
||||
__index: *t0x8f5be8
|
||||
__metatable: *t0x8f5be8
|
||||
loaders: &t0x8ed5b0
|
||||
1: f0x8ed620
|
||||
2: f0x8ed648
|
||||
3: f0x8ed670
|
||||
4: f0x8ed698
|
||||
preload: &t0x8ed720
|
||||
string: &t0x8ed340
|
||||
byte: f0x25234
|
||||
char: f0x24768
|
||||
dump: f0x254d4
|
||||
|
@ -189,7 +189,20 @@ __root__: &t0xc4e478
|
|||
reverse: f0x23fb8
|
||||
sub: f0x2518c
|
||||
upper: f0x23ed8
|
||||
table: &t0xc4fb68
|
||||
t: &t0x8f1bd0
|
||||
C: hello
|
||||
D: *t0x8f1bd0
|
||||
A: &t0x8f1d98
|
||||
a: beep
|
||||
b: boop
|
||||
c: burp
|
||||
d: *t0x8f5f90
|
||||
B: &t0x8f5f90
|
||||
a: nude
|
||||
b: dude
|
||||
c: lewd
|
||||
d: *t0x8f1d98
|
||||
table: &t0x8edb68
|
||||
concat: f0x2691c
|
||||
insert: f0x26688
|
||||
maxn: f0x26818
|
||||
|
|
18
run.lua
18
run.lua
|
@ -1,6 +1,23 @@
|
|||
#!/usr/bin/lua
|
||||
local pt = require('pt')
|
||||
|
||||
t = {
|
||||
A = {
|
||||
a = 'beep',
|
||||
b = 'boop',
|
||||
c = 'burp',
|
||||
},
|
||||
B = {
|
||||
a = 'nude',
|
||||
b = 'dude',
|
||||
c = 'lewd',
|
||||
},
|
||||
C = 'hello',
|
||||
}
|
||||
t.A.d = t.B
|
||||
t.B.d = t.A
|
||||
t.D = t
|
||||
|
||||
function dump(t, fn, seen)
|
||||
if t == nil then return end
|
||||
|
||||
|
@ -19,4 +36,5 @@ function dump(t, fn, seen)
|
|||
return seen
|
||||
end
|
||||
|
||||
pt(t)
|
||||
dump(_G, '!_G.yml')
|
||||
|
|
Loading…
Reference in a new issue