local s=game:GetService("\082\101\112\108\105\099\097\116\101\100\083\116\111\114\097\103\101")local u=require(s.Packages.iter)return function()describe("\099\111\117\110\116",function()it("\115\104\111\117\108\100 \114\101\116\117\114\110 \048 \102\111\114 \101\109\112\116\121 \105\116\101\114\097\116\111\114",function()(expect((u.new({})):count())).to.be.equal(0);(expect((u.new({})):count())).to.be.equal(0)end)it("\115\104\111\117\108\100 \114\101\116\117\114\110 \110\117\109\098\101\114 \111\102 \101\108\101\109\101\110\116\115",function()local s=(u.new({1,2,3})):count();(expect(s)).to.be.equal(3)s=(u.new({a=1;b=2;c=3})):count();(expect(s)).to.be.equal(3)end)end)end
--!strict
local ReplicatedStorage = game:GetService("ReplicatedStorage")

local iter = require(ReplicatedStorage.Packages.iter)

return function()
	describe("count", function()
		it("should return 0 for empty iterator", function()
			expect(iter.new({}):count()).to.be.equal(0)
			expect(iter.new({}):count()).to.be.equal(0)
		end)

		it("should return number of elements", function()
			local result = iter.new({ 1, 2, 3 }):count()
			expect(result).to.be.equal(3)

			result = iter.new({ a = 1, b = 2, c = 3 }):count()
			expect(result).to.be.equal(3)
		end)
	end)
end
