return function()local Y=game:GetService("\082\101\112\108\105\099\097\116\101\100\083\116\111\114\097\103\101")local j=Y.Packages local D=require(j.Llama)local E=D.None local T=D.Set local K=T.fromList it("\115\104\111\117\108\100 \118\097\108\105\100\097\116\101 \116\121\112\101\115",function()local Y,j=pcall(function()K(0)end);(expect(string.find(j,"\101\120\112\101\099\116\101\100\044 \103\111\116"))).to.be.ok()end)it("\115\104\111\117\108\100 \114\101\116\117\114\110 \097 \110\101\119 \116\097\098\108\101",function()local Y={};(expect(K(Y))).never.to.equal(Y)end)it("\115\104\111\117\108\100 \110\111\116 \109\117\116\097\116\101 \112\097\115\115\101\100 \105\110 \116\097\098\108\101\115",function()local Y={"\102\111\111","\098\097\114"}local j=0 setmetatable(Y,{__newindex=function()j=j+1 end})K(Y);(expect(j)).to.equal(0)end)it("\115\104\111\117\108\100 \099\114\101\097\116\101 \097 \115\101\116 \102\114\111\109 \097 \108\105\115\116",function()local Y={"\102\111\111";"\098\097\114"}local j=K(Y);(expect(j.foo)).to.equal(true);(expect(j.bar)).to.equal(true)end)it("\115\104\111\117\108\100 \110\111\116 \115\107\105\112 \078\111\110\101 \118\097\108\117\101\115",function()local Y={"\102\111\111",E}local j=K(Y);(expect(j.foo)).to.equal(true);(expect(j[E])).to.equal(true)end)end
return function()
	local ReplicatedStorage = game:GetService("ReplicatedStorage")

	local Packages = ReplicatedStorage.Packages
	local Llama = require(Packages.Llama)

	local None = Llama.None

	local Set = Llama.Set
	local fromList = Set.fromList

	it("should validate types", function()
		local _, err = pcall(function()
			fromList(0)
		end)

		expect(string.find(err, "expected, got")).to.be.ok()
	end)

	it("should return a new table", function()
		local a = {}

		expect(fromList(a)).never.to.equal(a)
	end)
	
	it("should not mutate passed in tables", function()
		local a = { "foo", "bar" }
		local mutations = 0

		setmetatable(a, {
			__newindex = function()
				mutations = mutations + 1
			end
		})

		fromList(a)

		expect(mutations).to.equal(0)
	end)

	it("should create a set from a list", function()
		local list = { "foo", "bar" }

		local set = fromList(list)

		expect(set.foo).to.equal(true)
		expect(set.bar).to.equal(true)
	end)

	it("should not skip None values", function()
		local list = { "foo", None }

		local set = fromList(list)

		expect(set.foo).to.equal(true)
		expect(set[None]).to.equal(true)
	end)
end