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.
18 lines
294 B
18 lines
294 B
5 years ago
|
package main
|
||
|
|
||
|
import (
|
||
|
"math/rand"
|
||
|
"testing"
|
||
|
|
||
|
"github.com/01-edu/z01"
|
||
|
solutions "../../solutions"
|
||
|
)
|
||
|
|
||
|
func TestTwoSum(t *testing.T) {
|
||
|
for i := 0; i < 20; i++ {
|
||
|
token := rand.Perm(20)
|
||
|
target := rand.Intn(30)
|
||
|
z01.Challenge(t, TwoSum, solutions.TwoSum, token, target)
|
||
|
}
|
||
|
}
|