|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/01-edu/public/go/lib"
|
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
Refactor & Beautify & destruction commit
return early, remove else branches, reorder conditions and top-level functions, remove empty lines, remove unnecessary append(), fix typos, stop using testing package, remove dead code, fix mistakes in subjects, tests and solutions, remove disclaimers, reformat comments, simplify solutions, tests, add more instructions to subjects, remove obsolete files, etc.
Some of the reasons behind those modifications will be added to good-practices.en.md
Some of the exercises are now broken, they will have to be fixed, most of them have a "TODO:" comment.
5 years ago
|
|
|
table := []string{
|
|
|
|
"",
|
|
|
|
"abcdefghijklm",
|
|
|
|
"the time of contempt precedes that of indifference",
|
|
|
|
"he stared at the mountain",
|
Refactor & Beautify & destruction commit
return early, remove else branches, reorder conditions and top-level functions, remove empty lines, remove unnecessary append(), fix typos, stop using testing package, remove dead code, fix mistakes in subjects, tests and solutions, remove disclaimers, reformat comments, simplify solutions, tests, add more instructions to subjects, remove obsolete files, etc.
Some of the reasons behind those modifications will be added to good-practices.en.md
Some of the exercises are now broken, they will have to be fixed, most of them have a "TODO:" comment.
5 years ago
|
|
|
"qw qw e qwsa d",
|
|
|
|
}
|
|
|
|
|
Refactor & Beautify & destruction commit
return early, remove else branches, reorder conditions and top-level functions, remove empty lines, remove unnecessary append(), fix typos, stop using testing package, remove dead code, fix mistakes in subjects, tests and solutions, remove disclaimers, reformat comments, simplify solutions, tests, add more instructions to subjects, remove obsolete files, etc.
Some of the reasons behind those modifications will be added to good-practices.en.md
Some of the exercises are now broken, they will have to be fixed, most of them have a "TODO:" comment.
5 years ago
|
|
|
// 3 valid random sentences with no spaces at the beginning nor the end and only one space for separator.
|
|
|
|
for i := 0; i < 3; i++ {
|
|
|
|
numberOfWords := lib.RandIntBetween(1, 6)
|
|
|
|
sentence := lib.RandAlnum()
|
|
|
|
for j := 0; j < numberOfWords; j++ {
|
|
|
|
sentence += " " + lib.RandAlnum()
|
|
|
|
}
|
|
|
|
sentence += lib.RandAlnum()
|
|
|
|
table = append(table, sentence)
|
|
|
|
}
|
|
|
|
|
|
|
|
for _, s := range table {
|
|
|
|
lib.ChallengeMain("revwstr", s)
|
|
|
|
}
|
|
|
|
|
|
|
|
lib.ChallengeMain("revwstr")
|
|
|
|
lib.ChallengeMain("revwstr", "1param", "2param", "3param", "4param")
|
|
|
|
}
|