return function()local U=require(script.Parent.toSet)it("\115\104\111\117\108\100 \114\101\116\117\114\110 \097 \115\101\116",function()local k={1,2;3}local t=U(k);(expect(t)).to.be.a("\116\097\098\108\101");(expect(t[1])).to.equal(true);(expect(t[2])).to.equal(true);(expect(t[3])).to.equal(true)end)it("\115\104\111\117\108\100 \114\101\116\117\114\110 \097 \115\101\116 \111\102 \115\116\114\105\110\103\115",function()local k={"\097";"\098","\098";"\099"}local t=U(k);(expect(t)).to.be.a("\116\097\098\108\101");(expect(t.a)).to.equal(true);(expect(t.b)).to.equal(true);(expect(t.c)).to.equal(true)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 \097\114\114\097\121",function()local k={1;2;3}U(k);(expect(k)).to.be.a("\116\097\098\108\101");(expect(#k)).to.equal(3);(expect(k[1])).to.equal(1);(expect(k[2])).to.equal(2);(expect(k[3])).to.equal(3)end)end
return function()
	local ToSet = require(script.Parent.toSet)

	it("should return a set", function()
		local array = { 1, 2, 3 }

		local set = ToSet(array)

		expect(set).to.be.a("table")
		expect(set[1]).to.equal(true)
		expect(set[2]).to.equal(true)
		expect(set[3]).to.equal(true)
	end)

	it("should return a set of strings", function()
		local array = { "a", "b", "b", "c" }

		local set = ToSet(array)

		expect(set).to.be.a("table")
		expect(set["a"]).to.equal(true)
		expect(set["b"]).to.equal(true)
		expect(set["c"]).to.equal(true)
	end)

	it("should not modify the original array", function()
		local array = { 1, 2, 3 }

		ToSet(array)

		expect(array).to.be.a("table")
		expect(#array).to.equal(3)

		expect(array[1]).to.equal(1)
		expect(array[2]).to.equal(2)
		expect(array[3]).to.equal(3)
	end)
end
