return function()local p=game:GetService("\082\101\112\108\105\099\097\116\101\100\083\116\111\114\097\103\101")local A=p.Packages local r=require(A.Llama)local U=r.None local u=r.List local q=u.removeIndex it("\115\104\111\117\108\100 \118\097\108\105\100\097\116\101 \116\121\112\101\115",function()local p={{0},{{};1.5}}for A=1,#p,1 do local r,U=pcall(function()q(unpack(p[A]))end);(expect(string.find(U,"\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 p={1,2;3};(expect(q(p,1))).never.to.equal(p)end)it("\115\104\111\117\108\100 \110\111\116 \112\097\115\115\101\100 \105\110 \116\097\098\108\101\115",function()local p={"\102\111\111","\098\097\114"}local A=0 setmetatable(p,{__newindex=function()A=A+1 end})q(p,1);(expect(A)).to.equal(0)end)it("\115\104\111\117\108\100 \114\101\109\111\118\101 \116\104\101 \101\108\101\109\101\110\116 \097\116 \116\104\101 \103\105\118\101\110 \105\110\100\101\120",function()local p={"\102\111\111","\098\097\114";"\098\097\122"}local A=q(p,2);(expect(#A)).to.equal(2);(expect(A[1])).to.equal("\102\111\111");(expect(A[2])).to.equal("\098\097\122")end)it("\115\104\111\117\108\100 \097\099\099\101\112\116 \097 \048 \111\114 \110\101\103\097\116\105\118\101 \105\110\100\101\120",function()local p={"\102\111\111","\098\097\114","\098\097\122"}local A=q(p,-1);(expect(#A)).to.equal(2);(expect(A[1])).to.equal("\102\111\111");(expect(A[2])).to.equal("\098\097\122")end)it("\115\104\111\117\108\100 \119\111\114\107 \119\105\116\104 \097 \078\111\110\101 \101\108\101\109\101\110\116",function()local p={"\102\111\111",U;"\098\097\122"}local A=q(p,1);(expect(#A)).to.equal(2);(expect(A[1])).to.equal(U);(expect(A[2])).to.equal("\098\097\122")end)end
return function()
	local ReplicatedStorage = game:GetService("ReplicatedStorage")

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

	local None = Llama.None

	local List = Llama.List
	local removeIndex = List.removeIndex

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

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

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

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

		expect(removeIndex(a, 1)).never.to.equal(a)
	end)

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

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

		removeIndex(a, 1)

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

	it("should remove the element at the given index", function()
		local a = {
			"foo",
			"bar",
			"baz",
		}

		local b = removeIndex(a, 2)

		expect(#b).to.equal(2)
		expect(b[1]).to.equal("foo")
		expect(b[2]).to.equal("baz")
	end)

	it("should accept a 0 or negative index", function()
		local a = {
			"foo",
			"bar",
			"baz",
		}

		local b = removeIndex(a, -1)

		expect(#b).to.equal(2)
		expect(b[1]).to.equal("foo")
		expect(b[2]).to.equal("baz")
	end)

	it("should work with a None element", function()
		local a = {
			"foo",
			None,
			"baz"
		}

		local b = removeIndex(a, 1)

		expect(#b).to.equal(2)
		expect(b[1]).to.equal(None)
		expect(b[2]).to.equal("baz")
	end)
end