func TestCyclicPatternSmall(t *testing.T) {
    want := "Aa0Aa1Aa2A"
    data := cyclicPattern(10)
    if string(data) != want {
        t.Errorf("string(data) = %s, want %s", string(data), want)
    }
}
tests generating a small cyclic pattern of bytes
package overflow
import (
    "testing"
)
func TestCyclicPatternEmpty(t *testing.T) {
    want := ""
    data := cyclicPattern(0)
    if string(data) != want {
        t.Errorf("string(data) = %s, want %s", string(data), want)
    }
}