mirror of https://github.com/01-edu/public.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
404 B
27 lines
404 B
package main |
|
|
|
import ( |
|
"testing" |
|
|
|
"github.com/01-edu/z01" |
|
) |
|
|
|
func TestUniqueOccurences(t *testing.T) { |
|
table := []string{} |
|
|
|
table = append(table, |
|
"abbaac", |
|
"ab", |
|
"abcacccazb", |
|
"", |
|
) |
|
|
|
for i := 0; i < 15; i++ { |
|
value := z01.RandStr(z01.RandIntBetween(5, 10), "qwertyuiopasdfghjklzxcvbnm") |
|
table = append(table, value) |
|
} |
|
|
|
for _, arg := range table { |
|
z01.ChallengeMainExam(t, arg) |
|
} |
|
}
|
|
|