mirror of
https://github.com/lune-org/lune.git
synced 2024-12-12 21:10:36 +00:00
21 lines
596 B
Lua
21 lines
596 B
Lua
|
local fs = require("@lune/fs") :: any
|
||
|
local roblox = require("@lune/roblox") :: any
|
||
|
|
||
|
local modelDirs = {}
|
||
|
for _, dirName in fs.readDir("tests/roblox/rbx-test-files/places") do
|
||
|
table.insert(modelDirs, "tests/roblox/rbx-test-files/places/" .. dirName)
|
||
|
end
|
||
|
|
||
|
for _, modelDir in modelDirs do
|
||
|
local modelBinary = roblox.readModelFile(modelDir .. "/binary.rbxl")
|
||
|
local modelXml = roblox.readModelFile(modelDir .. "/xml.rbxlx")
|
||
|
|
||
|
for _, modelInstance in modelBinary do
|
||
|
assert(modelInstance:IsA("Instance"))
|
||
|
end
|
||
|
|
||
|
for _, modelInstance in modelXml do
|
||
|
assert(modelInstance:IsA("Instance"))
|
||
|
end
|
||
|
end
|