return function()local U=game:GetService("\082\101\112\108\105\099\097\116\101\100\083\116\111\114\097\103\101")local s=U.Packages local H=require(s.Llama)local X=H.Dictionary local Y=X.set it("\115\104\111\117\108\100 \118\097\108\105\100\097\116\101 \116\121\112\101\115",function()local U={{0},{0,0}}for s=1,#U,1 do local H,X=pcall(function()Y(unpack(U[s]))end);(expect(string.find(X,"\101\120\112\101\099\116\101\100\044 \103\111\116"))).to.be.ok()end 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 U={};(expect(Y(U,"\102\111\111",1))).never.to.equal(U)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 U={foo=1;bar=2;baz=3}local s=0 setmetatable(U,{__newindex=function()s=s+1 end})Y(U,"\113\117\120",4);(expect(s)).to.equal(0)end)it("\115\104\111\117\108\100 \115\101\116 \118\097\108\117\101 \097\116 \115\112\101\099\105\102\105\101\100 \107\101\121",function()local U={foo=1;bar=2}local s=Y(U,"\098\097\122",3);(expect(s.baz)).to.equal(3)end)end
return function()
	local ReplicatedStorage = game:GetService("ReplicatedStorage")

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

	local Dictionary = Llama.Dictionary
	local set = Dictionary.set

	it("should validate types", function()
		local args = {
			{ 0 },
			{ 0, 0 },
		}

		for i = 1, #args do
			local _, err = pcall(function()
				set(unpack(args[i]))
			end)

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

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

		expect(set(a, "foo", 1)).never.to.equal(a)
	end)

	it("should not mutate passed in tables", function()
		local a = {
			foo = 1,
			bar = 2,
			baz = 3,
		}
		local mutations = 0

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

		set(a, "qux", 4)

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

	it("should set value at specified key", function()
		local a = {
			foo = 1,
			bar = 2,
		}

		local b = set(a, "baz", 3)

		expect(b.baz).to.equal(3)
	end)
end