basic testing table

This commit is contained in:
Connor Olding 2014-08-20 17:59:36 -07:00
parent 62866ee36c
commit 124ec51da3
2 changed files with 83 additions and 52 deletions

117
!_G.yml
View file

@ -1,22 +1,22 @@
__root__: &t0xc4e478 __root__: &t0x8ec478
_VERSION: "Lua 5.2" _VERSION: "Lua 5.2"
add_zeros: f0xc56f38 add_zeros: f0x8ec3f0
assert: f0x1fefc assert: f0x1fefc
collectgarbage: f0x1f930 collectgarbage: f0x1f930
dofile: f0x1fe7c dofile: f0x1fe7c
dump: f0xc578c0 dump: f0x8f1410
error: f0x1f8c0 error: f0x1f8c0
getaddr: f0xc53f00 getaddr: f0x8f4c30
getmetatable: f0x1fe2c getmetatable: f0x1fe2c
ipairs: f0x1fd24 ipairs: f0x1fd24
load: f0x1ff54 load: f0x1ff54
loadfile: f0x1fd80 loadfile: f0x1fd80
loadstring: f0x1ff54 loadstring: f0x1ff54
mixed_sorter: f0xc56ef0 mixed_sorter: f0x8f1c28
module: f0xc4ee20 module: f0x8ece20
next: f0x1f7ac next: f0x1f7ac
opairs: f0xc53630 opairs: f0x8f4da0
order_keys: f0xc56ea8 order_keys: f0x8f4cc0
pairs: f0x1fd04 pairs: f0x1fd04
pcall: f0x1fb50 pcall: f0x1fb50
print: f0x1f66c print: f0x1f66c
@ -24,21 +24,21 @@ __root__: &t0xc4e478
rawget: f0x1f598 rawget: f0x1f598
rawlen: f0x1f5d8 rawlen: f0x1f5d8
rawset: f0x1f54c rawset: f0x1f54c
rawstr: f0xc56e60 rawstr: f0x8f4c78
require: f0xc4fb00 require: f0x8edb00
select: f0x1f444 select: f0x1f444
setmetatable: f0x1fbc0 setmetatable: f0x1fbc0
strpad: f0xc52890 strpad: f0x8f34e8
tonumber: f0x1f25c tonumber: f0x1f25c
tostring: f0x1f234 tostring: f0x1f234
type: f0x1f1f8 type: f0x1f1f8
unpack: f0x26598 unpack: f0x26598
xpcall: f0x1fa84 xpcall: f0x1fa84
_G: *t0xc4e478 _G: *t0x8ec478
arg: &t0xc526b8 arg: &t0x8f06b8
"-1": "/usr/bin/lua" "-1": "/usr/bin/lua"
0: "./run.lua" 0: "./run.lua"
bit32: &t0xc4f190 bit32: &t0x8ed190
arshift: f0x2022c arshift: f0x2022c
band: f0x20458 band: f0x20458
bnot: f0x20208 bnot: f0x20208
@ -51,14 +51,14 @@ __root__: &t0xc4e478
replace: f0x20338 replace: f0x20338
rrotate: f0x201c4 rrotate: f0x201c4
rshift: f0x2015c rshift: f0x2015c
coroutine: &t0xc4e998 coroutine: &t0x8ec998
create: f0x20844 create: f0x20844
resume: f0x20934 resume: f0x20934
running: f0x20824 running: f0x20824
status: f0x206cc status: f0x206cc
wrap: f0x20888 wrap: f0x20888
yield: f0x20584 yield: f0x20584
debug: &t0xc507c8 debug: &t0x8ee7c8
debug: f0x20e44 debug: f0x20e44
gethook: f0x21470 gethook: f0x21470
getinfo: f0x21674 getinfo: f0x21674
@ -75,7 +75,7 @@ __root__: &t0xc4e478
traceback: f0x20ff8 traceback: f0x20ff8
upvalueid: f0x20ca0 upvalueid: f0x20ca0
upvaluejoin: f0x20cd8 upvaluejoin: f0x20cd8
io: &t0xc4ffe8 io: &t0x8edfe8
close: f0x21c94 close: f0x21c94
flush: f0x22328 flush: f0x22328
input: f0x22a28 input: f0x22a28
@ -84,13 +84,13 @@ __root__: &t0xc4e478
output: f0x22a0c output: f0x22a0c
popen: f0x2238c popen: f0x2238c
read: f0x222dc read: f0x222dc
stderr: "file (0x76ee69d8)" stderr: "file (0x76e559d8)"
stdin: "file (0x76ee6c98)" stdin: "file (0x76e55c98)"
stdout: "file (0x76ee6b38)" stdout: "file (0x76e55b38)"
tmpfile: f0x22c70 tmpfile: f0x22c70
type: f0x22890 type: f0x22890
write: f0x21ba8 write: f0x21ba8
math: &t0xc51a10 math: &t0x8efa10
abs: f0x22e48 abs: f0x22e48
acos: f0x234c8 acos: f0x234c8
asin: f0x234a4 asin: f0x234a4
@ -121,7 +121,7 @@ __root__: &t0xc4e478
sqrt: f0x22eb4 sqrt: f0x22eb4
tan: f0x22e6c tan: f0x22e6c
tanh: f0x22e90 tanh: f0x22e90
os: &t0xc4fd90 os: &t0x8edd90
clock: f0x237d8 clock: f0x237d8
date: f0x23ac0 date: f0x23ac0
difftime: f0x23758 difftime: f0x23758
@ -133,7 +133,7 @@ __root__: &t0xc4e478
setlocale: f0x23580 setlocale: f0x23580
time: f0x23930 time: f0x23930
tmpname: f0x23810 tmpname: f0x23810
package: &t0xc4ee90 package: &t0x8ece90
config: "\ 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" 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 searchpath: f0x27ad4
seeall: f0x273e0 seeall: f0x273e0
searchers: *t0xc4f5b0 searchers: *t0x8ed5b0
loaded: &t0xc4e948 loaded: &t0x8ec948
extra: true extra: true
_G: *t0xc4e478 _G: *t0x8ec478
bit32: *t0xc4f190 bit32: *t0x8ed190
coroutine: *t0xc4e998 coroutine: *t0x8ec998
debug: *t0xc507c8 debug: *t0x8ee7c8
io: *t0xc4ffe8 io: *t0x8edfe8
math: *t0xc51a10 math: *t0x8efa10
os: *t0xc4fd90 os: *t0x8edd90
package: *t0xc4ee90 package: *t0x8ece90
string: *t0xc4f340 string: *t0x8ed340
table: *t0xc4fb68 table: *t0x8edb68
pt: &t0xc56a90 pt: &t0x8f5be8
__call: f0xc52a58 __call: f0x8f12a0
inner: f0xc55c50 inner: f0x8f5a10
outer: f0xc55ce8 outer: f0x8f4de0
safekey: f0xc57890 safekey: f0x8f1dc0
safeval: f0xc578a8 safeval: f0x8ec230
write: f0xc56f08 write: f0x8f3890
__index: *t0xc56a90 __index: *t0x8f5be8
__metatable: *t0xc56a90 __metatable: *t0x8f5be8
loaders: &t0xc4f5b0 loaders: &t0x8ed5b0
1: f0xc4f620 1: f0x8ed620
2: f0xc4f648 2: f0x8ed648
3: f0xc4f670 3: f0x8ed670
4: f0xc4f698 4: f0x8ed698
preload: &t0xc4f720 preload: &t0x8ed720
string: &t0xc4f340 string: &t0x8ed340
byte: f0x25234 byte: f0x25234
char: f0x24768 char: f0x24768
dump: f0x254d4 dump: f0x254d4
@ -189,7 +189,20 @@ __root__: &t0xc4e478
reverse: f0x23fb8 reverse: f0x23fb8
sub: f0x2518c sub: f0x2518c
upper: f0x23ed8 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 concat: f0x2691c
insert: f0x26688 insert: f0x26688
maxn: f0x26818 maxn: f0x26818

18
run.lua
View file

@ -1,6 +1,23 @@
#!/usr/bin/lua #!/usr/bin/lua
local pt = require('pt') 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) function dump(t, fn, seen)
if t == nil then return end if t == nil then return end
@ -19,4 +36,5 @@ function dump(t, fn, seen)
return seen return seen
end end
pt(t)
dump(_G, '!_G.yml') dump(_G, '!_G.yml')