diff --git a/iteration/iter_test.go b/iteration/iter_test.go index 47e82cb..6d26fcb 100644 --- a/iteration/iter_test.go +++ b/iteration/iter_test.go @@ -1,6 +1,15 @@ package iteration -import "testing" +import ( + "fmt" + "testing" +) + +func ExampleRepeat() { + repeated := Repeat("ab") + fmt.Println(repeated) + // Output: ababababab +} func TestRepeat(t *testing.T) { repeated := Repeat("a")