return function()local U=require(script.Parent.set)it("\115\104\111\117\108\100 \115\101\116 \116\104\101 \103\105\118\101\110 \118\097\108\117\101 \105\110 \116\104\101 \103\105\118\101\110 \097\114\114\097\121",function()local k={1,2;3}local t=U(k,2,4);(expect(t[2])).to.equal(4)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,2,4);(expect(k[1])).to.equal(1);(expect(k[2])).to.equal(2);(expect(k[3])).to.equal(3)end)end
return function()
	local Set = require(script.Parent.set)

	it("should set the given value in the given array", function()
		local array = { 1, 2, 3 }

		local new = Set(array, 2, 4)

		expect(new[2]).to.equal(4)
	end)

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

		Set(array, 2, 4)

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