return function()local H=require(script.Parent.set)it("\115\104\111\117\108\100 \114\101\116\117\114\110 \097 \110\101\119 \100\105\099\116\105\111\110\097\114\121 \119\105\116\104 \116\104\101 \103\105\118\101\110 \107\101\121\047\118\097\108\117\101 \115\101\116",function()local n={hello="\114\111\098\108\111\120";goodbye="\119\111\114\108\100"}local E=H(n,"\099\097\116","\109\101\111\119");(expect(E)).to.be.a("\116\097\098\108\101");(expect(E.hello)).to.equal("\114\111\098\108\111\120");(expect(E.goodbye)).to.equal("\119\111\114\108\100");(expect(E.cat)).to.equal("\109\101\111\119")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 \100\105\099\116\105\111\110\097\114\121",function()local n={hello="\114\111\098\108\111\120";goodbye="\119\111\114\108\100"}H(n,"\099\097\116","\119\111\111\102");(expect(n)).to.be.a("\116\097\098\108\101");(expect(n.cat)).to.equal(nil)end)end
return function()
	local Set = require(script.Parent.set)

	it("should return a new dictionary with the given key/value set", function()
		local dictionary = { hello = "roblox", goodbye = "world" }

		local newDictionary = Set(dictionary, "cat", "meow")

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

		expect(newDictionary.hello).to.equal("roblox")
		expect(newDictionary.goodbye).to.equal("world")
		expect(newDictionary.cat).to.equal("meow")
	end)

	it("should not modify the original dictionary", function()
		local dictionary = { hello = "roblox", goodbye = "world" }

		Set(dictionary, "cat", "woof")

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

		expect(dictionary.cat).to.equal(nil)
	end)
end
