return function()local a=require(script.Parent.at)it("\115\104\111\117\108\100 \114\101\116\117\114\110 \116\104\101 \118\097\108\117\101 \097\116 \116\104\101 \103\105\118\101\110 \105\110\100\101\120",function()local y={1;2;3};(expect(a(y,1))).to.equal(1);(expect(a(y,2))).to.equal(2);(expect(a(y,3))).to.equal(3)end)it("\115\104\111\117\108\100 \114\101\116\117\114\110 \110\105\108 \105\102 \116\104\101 \105\110\100\101\120 \105\115 \111\117\116 \111\102 \098\111\117\110\100\115",function()local y={1;2,3};(expect(a(y,4))).to.equal(nil)end)it("\115\104\111\117\108\100 \114\101\116\117\114\110 \102\114\111\109 \116\104\101 \101\110\100 \105\102 \116\104\101 \105\110\100\101\120 \105\115 \110\101\103\097\116\105\118\101 \040\111\114 \048\041",function()local y={1,2,3};(expect(a(y,0))).to.equal(3);(expect(a(y,-1))).to.equal(2);(expect(a(y,-2))).to.equal(1)end)end
return function()
	local At = require(script.Parent.at)

	it("should return the value at the given index", function()
		local array = { 1, 2, 3 }

		expect(At(array, 1)).to.equal(1)
		expect(At(array, 2)).to.equal(2)
		expect(At(array, 3)).to.equal(3)
	end)

	it("should return nil if the index is out of bounds", function()
		local array = { 1, 2, 3 }

		expect(At(array, 4)).to.equal(nil)
	end)

	it("should return from the end if the index is negative (or 0)", function()
		local array = { 1, 2, 3 }

		expect(At(array, 0)).to.equal(3)
		expect(At(array, -1)).to.equal(2)
		expect(At(array, -2)).to.equal(1)
	end)
end
