mirror of
https://github.com/lune-org/lune.git
synced 2025-04-10 21:40:54 +01:00
Add test to confirm Enums serde properly
This commit is contained in:
parent
a10a3e677f
commit
36cd391305
1 changed files with 10 additions and 0 deletions
|
@ -33,6 +33,16 @@ part.Shape = Enum.PartType.Ball
|
|||
|
||||
assert(part.Shape == Enum.PartType.Ball)
|
||||
|
||||
-- Enums should roundtrip through serde without problem
|
||||
|
||||
local decal = Instance.new("Decal")
|
||||
decal.Face = Enum.NormalId.Top
|
||||
|
||||
local decal_ser = roblox.serializeModel({ decal })
|
||||
local decal_de = roblox.deserializeModel(decal_ser)
|
||||
|
||||
assert(decal_de[1].Face == Enum.NormalId.Top)
|
||||
|
||||
-- Properties that don't exist for a class should error
|
||||
|
||||
local meshPart = Instance.new("MeshPart")
|
||||
|
|
Loading…
Add table
Reference in a new issue