2023-05-14 21:16:58 +01:00
|
|
|
local fs = require("@lune/fs")
|
2023-03-22 12:02:05 +00:00
|
|
|
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
|