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.removeKey it("\115\104\111\117\108\100 \118\097\108\105\100\097\116\101 \116\121\112\101\115",function()local U,s=pcall(function()Y(0)end);(expect(string.find(s,"\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 U={};(expect(Y(U,"\102\111\111"))).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,"\102\111\111");(expect(s)).to.equal(0)end)it("\115\104\111\117\108\100 \114\101\109\111\118\101 \097 \115\105\110\103\108\101 \101\110\116\114\121",function()local U={foo=1,bar=2;baz=3}local s=Y(U,"\098\097\122");(expect(s.baz)).never.to.be.ok()end)it("\115\104\111\117\108\100 \119\111\114\107 \101\118\101\110 \105\102 \101\110\116\114\121 \100\111\101\115 \110\111\116 \101\120\105\115\116",function()local U={foo=1,bar=2};(expect(function()Y(U,"\098\097\122")end)).never.to.throw()end)end
return function()
	local ReplicatedStorage = game:GetService("ReplicatedStorage")

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

	local Dictionary = Llama.Dictionary
	local removeKey = Dictionary.removeKey

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

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

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

		expect(removeKey(a, "foo")).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,
		})

		removeKey(a, "foo")

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

	it("should remove a single entry", function()
		local a = {
			foo = 1,
			bar = 2,
			baz = 3,
		}

		local b = removeKey(a, "baz")

		expect(b.baz).never.to.be.ok()
	end)

	it("should work even if entry does not exist", function()
		local a = {
			foo = 1,
			bar = 2,
		}

		expect(function()
			removeKey(a, "baz")
		end).never.to.throw()
	end)
end