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.
30 lines
768 B
30 lines
768 B
5 years ago
|
package main
|
||
5 years ago
|
|
||
|
import (
|
||
|
"strings"
|
||
|
|
||
5 years ago
|
"../lib"
|
||
5 years ago
|
)
|
||
|
|
||
5 years ago
|
func main() {
|
||
5 years ago
|
Lower := lib.RuneRange('a', 'z')
|
||
|
Upper := lib.RuneRange('A', 'Z')
|
||
5 years ago
|
letters := Lower + Upper + " "
|
||
|
var arr []string
|
||
|
for i := 0; i < 10; i++ {
|
||
5 years ago
|
str := lib.RandStr(lib.RandIntBetween(2, 20), letters)
|
||
5 years ago
|
arr = append(arr, str)
|
||
|
}
|
||
|
arr = append(arr, "")
|
||
|
|
||
|
for _, v := range arr {
|
||
5 years ago
|
lib.ChallengeMain("rotatevowels", strings.Fields(v)...)
|
||
5 years ago
|
}
|
||
5 years ago
|
lib.ChallengeMain("rotatevowels", "Hello World")
|
||
|
lib.ChallengeMain("rotatevowels", "HEllO World", "problem solved")
|
||
|
lib.ChallengeMain("rotatevowels", "str", "shh", "psst")
|
||
|
lib.ChallengeMain("rotatevowels", "happy thoughts", "good luck")
|
||
|
lib.ChallengeMain("rotatevowels", "al's elEphAnt is overly underweight!")
|
||
|
lib.ChallengeMain("rotatevowels", "aEi", "Ou")
|
||
5 years ago
|
}
|