// TestInfiniteLoop checks that an infiniteLoop looper will never return
// an error.
TestInfiniteLoop checks that an infiniteLoop looper will never return
an error.
// TestInfiniteLoop checks that an infiniteLoop looper will never return // an error .
func TestInfiniteLoop(t *testing.T) {
	var l looper = infiniteLoop{}
	for i := 0; i < 1_000_000; i++ {
		if err := l.nextLoop(); err != nil {
			t.Fatalf(`err = %v, want nil`, err)
		}
	}
}
func TestInfiniteLoop ( t * testing . T ) { var l looper = infiniteLoop { } for i := 0 ; i < 1_000_000 ; i ++ { if err := l . nextLoop ( ) ; err != nil { t . Fatalf ( `err = %v, want nil` , err ) } } }
TestInfiniteLoop checks that an infiniteLoop looper will never return
an error.
TestInfiniteLoop checks that an infiniteLoop looper will never return an error .
// Let's just run it a bunch of times