Sirshark10

Untitled

Mar 30th, 2016
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. t = {}
  2. table.bininsert(t, 5)
  3. assert(table.concat(t) == "5")
  4. table.bininsert(t, 4)
  5. assert(table.concat(t) == "45")
  6. table.bininsert(t, 6)
  7. assert(table.concat(t) == "456")
  8. table.bininsert(t, 5)
  9. assert(table.concat(t) == "4556")
  10. table.bininsert(t, 6)
  11. assert(table.concat(t) == "45566")
  12. table.bininsert(t, 4)
  13. assert(table.concat(t) == "445566")
  14. table.bininsert(t, 0)
  15. assert(table.concat(t) == "0445566")
Advertisement
Add Comment
Please, Sign In to add comment