mirror of
https://github.com/lune-org/lune.git
synced 2024-12-12 13:00:37 +00:00
11 lines
364 B
Text
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"
|
|
)
|