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.
29 lines
627 B
29 lines
627 B
package main |
|
|
|
import ( |
|
"io/ioutil" |
|
"os" |
|
|
|
"lib" |
|
) |
|
|
|
func main() { |
|
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) |
|
} |
|
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...) |
|
} |
|
}
|
|
|