-- table、string.format("%02X")、pcall 保護呼叫。
local t = { 0x10, 0x20, 0x30 }
check(#t == 3, "table has 3 elements")

local hex = string.format("%02X", t[2])
check(hex == "20", "string.format %02X on 0x20")

local ok, err = pcall(function()
  error("boom")
end)
check(ok == false, "pcall caught the error")
check(string.find(tostring(err), "boom") ~= nil, "error message mentions boom")

log("info", "basics_table done")
