return function()local D=require(script.Parent.toArray)it("\115\104\111\117\108\100 \099\111\110\118\101\114\116 \097 \115\101\116 \116\111 \097\110 \097\114\114\097\121",function()local B={hello=true;world=true}local Q=D(B);(expect(Q)).to.be.a("\116\097\098\108\101");(expect(Q)).never.to.equal(B);(expect(Q[1])).to.equal("\104\101\108\108\111");(expect(Q[2])).to.equal("\119\111\114\108\100")end)it("\115\104\111\117\108\100 \110\111\116 \109\111\100\105\102\121 \116\104\101 \111\114\105\103\105\110\097\108 \115\101\116",function()local B={hello=true}D(B);(expect(B)).to.be.a("\116\097\098\108\101");(expect(B.hello)).to.equal(true)end)end
return function()
	local toArray = require(script.Parent.toArray)

	it("should convert a set to an array", function()
		local set = { hello = true, world = true }

		local array = toArray(set)

		expect(array).to.be.a("table")
		expect(array).never.to.equal(set)

		expect(array[1]).to.equal("hello")
		expect(array[2]).to.equal("world")
	end)

	it("should not modify the original set", function()
		local set = { hello = true }

		toArray(set)

		expect(set).to.be.a("table")

		expect(set.hello).to.equal(true)
	end)
end
