mirror of
https://github.com/lune-org/lune.git
synced 2024-12-12 13:00:37 +00:00
20 lines
596 B
Lua
20 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
|