lune/tests/roblox/instance/methods/GetDebugId.luau
2023-10-25 11:10:24 +02:00

11 lines
364 B
Text

local roblox = require("@lune/roblox")
local part = roblox.Instance.new("Part")
local id = part:GetDebugId()
assert(type(id) == "string", "GetDebugId should return a string")
assert(#id == 32, "GetDebugId should return a string with length 32")
assert(
string.match(id, "^[0-9A-Fa-f]+$"),
"GetDebugId should return a string with only hexadecimal characters"
)