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.
32 lines
738 B
32 lines
738 B
5 years ago
|
package main
|
||
|
|
||
5 years ago
|
import "github.com/01-edu/z01"
|
||
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++ {
|
||
|
numberOfWords := z01.RandIntBetween(1, 6)
|
||
|
sentence := z01.RandAlnum()
|
||
|
for j := 0; j < numberOfWords; j++ {
|
||
5 years ago
|
sentence += " " + z01.RandAlnum()
|
||
5 years ago
|
}
|
||
5 years ago
|
sentence += z01.RandAlnum()
|
||
5 years ago
|
table = append(table, sentence)
|
||
|
}
|
||
|
|
||
|
for _, s := range table {
|
||
5 years ago
|
z01.ChallengeMain("revwstr", s)
|
||
5 years ago
|
}
|
||
|
|
||
5 years ago
|
z01.ChallengeMain("revwstr")
|
||
|
z01.ChallengeMain("revwstr", "1param", "2param", "3param", "4param")
|
||
5 years ago
|
}
|