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.List local u=U.removeValue it("\115\104\111\117\108\100 \118\097\108\105\100\097\116\101 \116\121\112\101\115",function()local p,A=pcall(function()u(0)end);(expect(string.find(A,"\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 p={}local A=u(p,"\102\111\111");(expect(A)).never.to.equal(p);(expect(A)).to.be.a("\116\097\098\108\101")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 p={"\102\111\111","\098\097\114"}local A=0 setmetatable(p,{__newindex=function()A=A+1 end})u(p,"\098\097\114");(expect(A)).to.equal(0)end)it("\115\104\111\117\108\100 \114\101\109\111\118\101 \097 \115\105\110\103\108\101 \118\097\108\117\101",function()local p={"\102\111\111";"\098\097\114";"\098\097\122","\098\097\122"}local A=u(p,"\098\097\122");(expect(#A)).to.equal(2);(expect(A[1])).to.equal("\102\111\111");(expect(A[2])).to.equal("\098\097\114")end)it("\115\104\111\117\108\100 \119\111\114\107 \101\118\101\110 \105\102 \118\097\108\117\101 \100\111\101\115 \110\111\116 \101\120\105\115\116",function()local p={"\102\111\111";"\098\097\114"};(expect(function()u(p,"\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 List = Llama.List
	local removeValue = List.removeValue

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

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

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

		local b = removeValue(a, "foo")

		expect(b).never.to.equal(a)
		expect(b).to.be.a("table")
	end)

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

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

		removeValue(a, "bar")

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

	it("should remove a single value", function()
		local a = {
			"foo",
			"bar",
			"baz",
			"baz",
		}

		local b = removeValue(a, "baz")

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

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

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