blob: e7a4b06bb84904da3a1f0761c37c001f020a63e1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
package loop
import "testing"
func TestLoop(t *testing.T) {
l := New(".")
l.inc()
if l.seen() != 1 {
t.Errorf("Failed to inc loop, expected %d, got %d", 1, l.seen())
}
}
|