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
725 B
34 lines
725 B
5 years ago
|
package main
|
||
|
|
||
5 years ago
|
import (
|
||
5 years ago
|
"lib"
|
||
5 years ago
|
)
|
||
5 years ago
|
|
||
5 years ago
|
func main() {
|
||
5 years ago
|
table := []string{
|
||
5 years ago
|
"",
|
||
|
"abcdefghijklm",
|
||
|
"the time of contempt precedes that of indifference",
|
||
|
"he stared at the mountain",
|
||
5 years ago
|
"qw qw e qwsa d",
|
||
|
}
|
||
5 years ago
|
|
||
5 years ago
|
// 3 valid random sentences with no spaces at the beginning nor the end and only one space for separator.
|
||
5 years ago
|
for i := 0; i < 3; i++ {
|
||
5 years ago
|
numberOfWords := lib.RandIntBetween(1, 6)
|
||
|
sentence := lib.RandAlnum()
|
||
5 years ago
|
for j := 0; j < numberOfWords; j++ {
|
||
5 years ago
|
sentence += " " + lib.RandAlnum()
|
||
5 years ago
|
}
|
||
5 years ago
|
sentence += lib.RandAlnum()
|
||
5 years ago
|
table = append(table, sentence)
|
||
|
}
|
||
|
|
||
|
for _, s := range table {
|
||
5 years ago
|
lib.ChallengeMain("revwstr", s)
|
||
5 years ago
|
}
|
||
|
|
||
5 years ago
|
lib.ChallengeMain("revwstr")
|
||
|
lib.ChallengeMain("revwstr", "1param", "2param", "3param", "4param")
|
||
5 years ago
|
}
|