Skip to content

Commit

Permalink
Update Tables.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
TheGreatSageEqualToHeaven authored Mar 27, 2024
1 parent a8cf1d1 commit 387cc49
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/Staging/Tables.lua
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
local t = {}
t[1] = 1
local v = t[1]
t["hash"] = 1
t["hash"] = 5
local k = t["hash"]
t[t] = {}
local n = t[t]
print(t,v,k,n)
assert(t[1] == 1)
assert(t[1] == v)
assert(t["hash"] == 5)
assert(t["hash"] == k)
assert(t[t] == n)

OK()

0 comments on commit 387cc49

Please sign in to comment.