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.
35 lines
532 B
35 lines
532 B
package main |
|
|
|
import ( |
|
"strings" |
|
"testing" |
|
|
|
"github.com/01-edu/z01" |
|
) |
|
|
|
func TestOptions(t *testing.T) { |
|
var table []string |
|
|
|
table = append(table, "-"+z01.RandLower(), |
|
" ", |
|
"-%", |
|
"-?", |
|
"-=", |
|
"-abc -ijk", |
|
"-z", |
|
"-abc -hijk", |
|
"-abcdefghijklmnopqrstuvwxyz", |
|
"-abcdefgijklmnopqrstuvwxyz", |
|
"-eeeeee", |
|
"-hhhhhh", |
|
"-h", |
|
"-hz", |
|
"-zh", |
|
"-z -h", |
|
strings.Join([]string{"-", z01.RandStr(10, z01.RuneRange('a', 'z'))}, ""), |
|
) |
|
|
|
for _, s := range table { |
|
z01.ChallengeMainExam(t, strings.Fields(s)...) |
|
} |
|
}
|
|
|