return function()local G=require(script.Parent.splice)it("\115\104\111\117\108\100 \105\110\115\101\114\116 \116\104\101 \103\105\118\101\110 \118\097\108\117\101\115 \105\110\116\111 \116\104\101 \103\105\118\101\110 \097\114\114\097\121",function()local T={1;2,3}local w=G(T,2,0,4,5);(expect(w)).to.be.a("\116\097\098\108\101");(expect(#w)).to.equal(3);(expect(w[1])).to.equal(1);(expect(w[2])).to.equal(4);(expect(w[3])).to.equal(5)end)it("\115\104\111\117\108\100 \105\110\115\101\114\116 \116\104\101 \103\105\118\101\110 \118\097\108\117\101\115 \105\110\116\111 \116\104\101 \103\105\118\101\110 \097\114\114\097\121 \119\105\116\104 \097 \110\101\103\097\116\105\118\101 \105\110\100\101\120",function()local T={1,2;3}local w=G(T,-2,0,4,5);(expect(w)).to.be.a("\116\097\098\108\101");(expect(#w)).to.equal(2);(expect(w[1])).to.equal(4);(expect(w[2])).to.equal(5);(expect(w[3])).never.to.be.ok()end)end
return function()
	local Splice = require(script.Parent.splice)

	it("should insert the given values into the given array", function()
		local array = { 1, 2, 3 }

		local spliced = Splice(array, 2, 0, 4, 5)

		expect(spliced).to.be.a("table")
		expect(#spliced).to.equal(3)
		expect(spliced[1]).to.equal(1)
		expect(spliced[2]).to.equal(4)
		expect(spliced[3]).to.equal(5)
	end)

	it("should insert the given values into the given array with a negative index", function()
		local array = { 1, 2, 3 }

		local spliced = Splice(array, -2, 0, 4, 5)

		expect(spliced).to.be.a("table")
		expect(#spliced).to.equal(2)
		expect(spliced[1]).to.equal(4)
		expect(spliced[2]).to.equal(5)
		expect(spliced[3]).never.to.be.ok()
	end)
end
