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.
34 lines
693 B
34 lines
693 B
5 years ago
|
package main
|
||
|
|
||
|
import (
|
||
|
"strconv"
|
||
|
"strings"
|
||
|
"testing"
|
||
|
|
||
|
"github.com/01-edu/z01"
|
||
|
)
|
||
|
|
||
|
func TestFprime(t *testing.T) {
|
||
|
table := []string{}
|
||
|
for i := 0; i < 10; i++ {
|
||
|
table = append(table, strconv.Itoa(z01.RandIntBetween(1, 100)))
|
||
|
}
|
||
|
|
||
|
table = append(table, " ")
|
||
|
table = append(table, "1")
|
||
|
table = append(table, "1 1")
|
||
|
table = append(table, "hello")
|
||
|
table = append(table, "p 1")
|
||
|
table = append(table, "804577")
|
||
|
table = append(table, "225225")
|
||
|
table = append(table, "8333325")
|
||
|
table = append(table, "42")
|
||
|
table = append(table, "9539")
|
||
|
table = append(table, "1000002")
|
||
|
table = append(table, "1000003")
|
||
|
|
||
|
for _, s := range table {
|
||
|
z01.ChallengeMainExam(t, strings.Fields(s)...)
|
||
|
}
|
||
|
}
|