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.

30 lines
661 B

package main
4 years ago
import (
"io/ioutil"
"os"
"github.com/01-edu/public/go/tests/lib"
4 years ago
)
func main() {
4 years ago
file1 := "quest8.txt"
file2 := "quest8T.txt"
if err := ioutil.WriteFile(file1, []byte(lib.RandWords()+"\n"), os.ModePerm); err != nil {
panic(err)
}
if err := ioutil.WriteFile(file2, []byte(lib.RandWords()+"\n"), os.ModePerm); err != nil {
panic(err)
}
4 years ago
table := [][]string{
{"-c", "23", "src/student/ztail/main.go", file1},
{"-c", "13", "src/student/ztail/main.go", "fjksdsf", file2},
{"-c", "5", file1, file2},
{"-c", "1", "fjksdsf"},
{"-c", "1", file1, file2},
}
for _, args := range table {
lib.ChallengeMain("ztail", args...)
}
}