github.com/onsi/ginkgo@v1.16.6-0.20211118180735-4e1925ba4c95/internal/counter_test.go (about) 1 package internal_test 2 3 import ( 4 . "github.com/onsi/ginkgo" 5 . "github.com/onsi/gomega" 6 7 "github.com/onsi/ginkgo/internal" 8 ) 9 10 var _ = Describe("Counter", func() { 11 It("counts. plain and simple.", func() { 12 counter := internal.MakeIncrementingIndexCounter() 13 for i := 0; i < 10; i += 1 { 14 Ω(counter()).Should(Equal(i)) 15 } 16 }) 17 })