mirror of
https://github.com/lune-org/lune.git
synced 2024-12-12 21:10:36 +00:00
19 lines
603 B
Lua
19 lines
603 B
Lua
|
local fs = require("@lune/fs") :: any
|
||
|
local roblox = require("@lune/roblox") :: any
|
||
|
|
||
|
local placeDirs = {}
|
||
|
for _, dirName in fs.readDir("tests/roblox/rbx-test-files/places") do
|
||
|
table.insert(placeDirs, "tests/roblox/rbx-test-files/places/" .. dirName)
|
||
|
end
|
||
|
|
||
|
for _, placeDir in placeDirs do
|
||
|
local placeBinary = roblox.readPlaceFile(placeDir .. "/binary.rbxl")
|
||
|
local placeXml = roblox.readPlaceFile(placeDir .. "/xml.rbxlx")
|
||
|
|
||
|
assert(placeBinary.ClassName == "DataModel")
|
||
|
assert(placeXml.ClassName == "DataModel")
|
||
|
|
||
|
assert(placeBinary:IsA("ServiceProvider"))
|
||
|
assert(placeXml:IsA("ServiceProvider"))
|
||
|
end
|