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.
24 lines
353 B
24 lines
353 B
5 years ago
|
package main
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
"github.com/01-edu/z01"
|
||
|
)
|
||
|
|
||
|
func TestRobotToOrigin(t *testing.T) {
|
||
|
table := []string{}
|
||
|
|
||
|
table = append(table,
|
||
|
"UD",
|
||
|
"LL",
|
||
|
)
|
||
|
|
||
|
for i := 0; i < 15; i++ {
|
||
|
value := z01.RandStr(z01.RandIntBetween(5, 1000), "UDLR")
|
||
|
table = append(table, value)
|
||
|
}
|
||
|
|
||
|
for _, arg := range table {
|
||
|
z01.ChallengeMainExam(t, arg)
|
||
|
}
|
||
|
}
|