diff --git a/tests/go/solutions/addprimesum/test_addprimesum.go b/tests/go/solutions/addprimesum/test_addprimesum.go index 98fe9d4f..4b1ed796 100644 --- a/tests/go/solutions/addprimesum/test_addprimesum.go +++ b/tests/go/solutions/addprimesum/test_addprimesum.go @@ -49,6 +49,6 @@ func main() { table = append(table, "1 2") for _, s := range table { - z01.ChallengeMain(strings.Fields(s)...) + z01.ChallengeMain("addprimesum", strings.Fields(s)...) } } diff --git a/tests/go/solutions/alphamirror/test_alphamirror.go b/tests/go/solutions/alphamirror/test_alphamirror.go index 4fbb2333..86951a0d 100644 --- a/tests/go/solutions/alphamirror/test_alphamirror.go +++ b/tests/go/solutions/alphamirror/test_alphamirror.go @@ -14,6 +14,6 @@ func main() { args := [][]string{arg1, arg2, arg3, arg4, arg5, arg6} for _, v := range args { - z01.ChallengeMain(v...) + z01.ChallengeMain("alphamirror", v...) } } diff --git a/tests/go/solutions/balancedstring/test_balancedstring.go b/tests/go/solutions/balancedstring/test_balancedstring.go index bada290e..41cedfd6 100644 --- a/tests/go/solutions/balancedstring/test_balancedstring.go +++ b/tests/go/solutions/balancedstring/test_balancedstring.go @@ -60,6 +60,6 @@ func main() { //We can use the ChallengeMainExam function. for _, arg := range table { - z01.ChallengeMain(arg) + z01.ChallengeMain("balancedstring", arg) } } diff --git a/tests/go/solutions/brackets/test_brackets.go b/tests/go/solutions/brackets/test_brackets.go index fa7b4d6a..ab8cd531 100644 --- a/tests/go/solutions/brackets/test_brackets.go +++ b/tests/go/solutions/brackets/test_brackets.go @@ -18,10 +18,10 @@ func main() { } // No args testig - z01.ChallengeMain() + z01.ChallengeMain("brackets") for _, v := range oneArgs { - z01.ChallengeMain(v) + z01.ChallengeMain("brackets", v) } arg1 := []string{"", "{[(0 + 0)(1 + 1)](3*(-1)){()}}"} @@ -30,6 +30,6 @@ func main() { multArg := [][]string{arg1, arg2, arg3} for _, v := range multArg { - z01.ChallengeMain(v...) + z01.ChallengeMain("brackets", v...) } } diff --git a/tests/go/solutions/brainfuck/test_brainfuck.go b/tests/go/solutions/brainfuck/test_brainfuck.go index f495981c..c0360835 100644 --- a/tests/go/solutions/brainfuck/test_brainfuck.go +++ b/tests/go/solutions/brainfuck/test_brainfuck.go @@ -16,6 +16,6 @@ func main() { strings.Join([]string{"ld++++++++++++++++++++++++++++++++++++++++++++this+is++a++++comment++++++++++++++[>d+<-]>.+", z01.RandStr(z01.RandIntBetween(1, 10), ".+"), ".+.>++++++++++."}, ""), } for _, v := range args { - z01.ChallengeMain(v) + z01.ChallengeMain("brainfuck", v) } } diff --git a/tests/go/solutions/capitalizeprog/test_capitalizeprog.go b/tests/go/solutions/capitalizeprog/test_capitalizeprog.go index 1bfa77a1..bfae291d 100644 --- a/tests/go/solutions/capitalizeprog/test_capitalizeprog.go +++ b/tests/go/solutions/capitalizeprog/test_capitalizeprog.go @@ -16,8 +16,8 @@ func main() { "9a LALALA!", ) for _, arg := range table { - z01.ChallengeMain(arg) + z01.ChallengeMain("capitalizeprog", arg) } - z01.ChallengeMain("hello", "hihihi") - z01.ChallengeMain() + z01.ChallengeMain("capitalizeprog", "hello", "hihihi") + z01.ChallengeMain("capitalizeprog") } diff --git a/tests/go/solutions/cleanstr/test_cleanstr.go b/tests/go/solutions/cleanstr/test_cleanstr.go index d88d0097..7a2a3178 100644 --- a/tests/go/solutions/cleanstr/test_cleanstr.go +++ b/tests/go/solutions/cleanstr/test_cleanstr.go @@ -13,10 +13,10 @@ func main() { } for _, v := range args { - z01.ChallengeMain(v) + z01.ChallengeMain("cleanstr", v) } arg1 := []string{"this is not", "happening"} - z01.ChallengeMain(arg1...) + z01.ChallengeMain("cleanstr", arg1...) } diff --git a/tests/go/solutions/compareprog/test_compareprog.go b/tests/go/solutions/compareprog/test_compareprog.go index a2168634..d70e2a9f 100644 --- a/tests/go/solutions/compareprog/test_compareprog.go +++ b/tests/go/solutions/compareprog/test_compareprog.go @@ -41,8 +41,8 @@ func main() { node{s: "Ola!", toCompare: "Ol"}, ) for _, arg := range table { - z01.ChallengeMain(arg.s, arg.toCompare) + z01.ChallengeMain("compareprog", arg.s, arg.toCompare) } - z01.ChallengeMain() - z01.ChallengeMain("1 arg", "2args", "3args") + z01.ChallengeMain("compareprog") + z01.ChallengeMain("compareprog", "1 arg", "2args", "3args") } diff --git a/tests/go/solutions/costumeprofit/test_costumeprofit.go b/tests/go/solutions/costumeprofit/test_costumeprofit.go index d8cd72ec..fce03811 100644 --- a/tests/go/solutions/costumeprofit/test_costumeprofit.go +++ b/tests/go/solutions/costumeprofit/test_costumeprofit.go @@ -30,6 +30,6 @@ func main() { d := strconv.Itoa(arg.D) e := strconv.Itoa(arg.E) f := strconv.Itoa(arg.F) - z01.ChallengeMain(a, b, c, d, e, f) + z01.ChallengeMain("costumeprofit", a, b, c, d, e, f) } } diff --git a/tests/go/solutions/countdown/test_countdown.go b/tests/go/solutions/countdown/test_countdown.go index 831bf4f4..a51c428e 100644 --- a/tests/go/solutions/countdown/test_countdown.go +++ b/tests/go/solutions/countdown/test_countdown.go @@ -5,5 +5,5 @@ import ( ) func main() { - z01.ChallengeMain() + z01.ChallengeMain("countdown") } diff --git a/tests/go/solutions/displaya/test_displaya.go b/tests/go/solutions/displaya/test_displaya.go index 708f90db..5c9f8167 100644 --- a/tests/go/solutions/displaya/test_displaya.go +++ b/tests/go/solutions/displaya/test_displaya.go @@ -13,8 +13,8 @@ func main() { table = append(table, "1") for _, s := range table { - z01.ChallengeMain(strings.Fields(s)...) + z01.ChallengeMain("displaya", strings.Fields(s)...) } - z01.ChallengeMain("1", "a") + z01.ChallengeMain("displaya", "1", "a") } diff --git a/tests/go/solutions/displayalpham/test_displayalpham.go b/tests/go/solutions/displayalpham/test_displayalpham.go index 831bf4f4..38bf1656 100644 --- a/tests/go/solutions/displayalpham/test_displayalpham.go +++ b/tests/go/solutions/displayalpham/test_displayalpham.go @@ -5,5 +5,5 @@ import ( ) func main() { - z01.ChallengeMain() + z01.ChallengeMain("displayalpham") } diff --git a/tests/go/solutions/displayalrevm/test_displayalrevm.go b/tests/go/solutions/displayalrevm/test_displayalrevm.go index 831bf4f4..832d2d01 100644 --- a/tests/go/solutions/displayalrevm/test_displayalrevm.go +++ b/tests/go/solutions/displayalrevm/test_displayalrevm.go @@ -5,5 +5,5 @@ import ( ) func main() { - z01.ChallengeMain() + z01.ChallengeMain("displayalrevm") } diff --git a/tests/go/solutions/displayfirstparam/test_displayfirstparam.go b/tests/go/solutions/displayfirstparam/test_displayfirstparam.go index 8eece7db..7ab67dfb 100644 --- a/tests/go/solutions/displayfirstparam/test_displayfirstparam.go +++ b/tests/go/solutions/displayfirstparam/test_displayfirstparam.go @@ -13,6 +13,6 @@ func main() { table = append(table, "1 2 3") for _, s := range table { - z01.ChallengeMain(strings.Fields(s)...) + z01.ChallengeMain("displayfirstparam", strings.Fields(s)...) } } diff --git a/tests/go/solutions/displaylastparam/test_displaylastparam.go b/tests/go/solutions/displaylastparam/test_displaylastparam.go index 06f51f31..4ec8b252 100644 --- a/tests/go/solutions/displaylastparam/test_displaylastparam.go +++ b/tests/go/solutions/displaylastparam/test_displaylastparam.go @@ -12,6 +12,6 @@ func main() { table = append(table, "1 2") for _, s := range table { - z01.ChallengeMain(strings.Fields(s)...) + z01.ChallengeMain("displaylastparam", strings.Fields(s)...) } } diff --git a/tests/go/solutions/displayz/test_displayz.go b/tests/go/solutions/displayz/test_displayz.go index 04b12c99..198fd5c9 100644 --- a/tests/go/solutions/displayz/test_displayz.go +++ b/tests/go/solutions/displayz/test_displayz.go @@ -13,8 +13,8 @@ func main() { table = append(table, "1") for _, s := range table { - z01.ChallengeMain(strings.Fields(s)...) + z01.ChallengeMain("displayz", strings.Fields(s)...) } - z01.ChallengeMain("1", "z") + z01.ChallengeMain("displayz", "1", "z") } diff --git a/tests/go/solutions/doopprog/test_doopprog.go b/tests/go/solutions/doopprog/test_doopprog.go index 97481436..2789b7e9 100644 --- a/tests/go/solutions/doopprog/test_doopprog.go +++ b/tests/go/solutions/doopprog/test_doopprog.go @@ -38,6 +38,6 @@ func main() { table = append(table, "9223372036854775807 * 3") for _, s := range table { - z01.ChallengeMain(strings.Fields(s)...) + z01.ChallengeMain("doopprog", strings.Fields(s)...) } } diff --git a/tests/go/solutions/expandstr/test_expandstr.go b/tests/go/solutions/expandstr/test_expandstr.go index dbb70a98..2fc53d70 100644 --- a/tests/go/solutions/expandstr/test_expandstr.go +++ b/tests/go/solutions/expandstr/test_expandstr.go @@ -17,7 +17,7 @@ func main() { } for _, v := range args { - z01.ChallengeMain(v...) + z01.ChallengeMain("expandstr", v...) } - z01.ChallengeMain() + z01.ChallengeMain("expandstr") } diff --git a/tests/go/solutions/firstword/test_firstword.go b/tests/go/solutions/firstword/test_firstword.go index 938ca928..16de53e8 100644 --- a/tests/go/solutions/firstword/test_firstword.go +++ b/tests/go/solutions/firstword/test_firstword.go @@ -16,6 +16,6 @@ func main() { table = append(table, "salut ! !") for _, s := range table { - z01.ChallengeMain(s) + z01.ChallengeMain("firstword", s) } } diff --git a/tests/go/solutions/fprime/test_fprime.go b/tests/go/solutions/fprime/test_fprime.go index 0e1793a7..8de340e4 100644 --- a/tests/go/solutions/fprime/test_fprime.go +++ b/tests/go/solutions/fprime/test_fprime.go @@ -27,6 +27,6 @@ func main() { table = append(table, "1000003") for _, s := range table { - z01.ChallengeMain(strings.Fields(s)...) + z01.ChallengeMain("fprime", strings.Fields(s)...) } } diff --git a/tests/go/solutions/gcd/test_gcd.go b/tests/go/solutions/gcd/test_gcd.go index 7d955b2c..7ffe8ab2 100644 --- a/tests/go/solutions/gcd/test_gcd.go +++ b/tests/go/solutions/gcd/test_gcd.go @@ -21,6 +21,6 @@ func main() { } for _, v := range args { - z01.ChallengeMain(v...) + z01.ChallengeMain("gcd", v...) } } diff --git a/tests/go/solutions/grouping/test_grouping.go b/tests/go/solutions/grouping/test_grouping.go index f4152fbc..cf028268 100644 --- a/tests/go/solutions/grouping/test_grouping.go +++ b/tests/go/solutions/grouping/test_grouping.go @@ -31,7 +31,7 @@ func main() { arr = append(arr, helper) for _, s := range arr { - z01.ChallengeMain(s.first, s.second) + z01.ChallengeMain("grouping", s.first, s.second) } } diff --git a/tests/go/solutions/hello/test_hello.go b/tests/go/solutions/hello/test_hello.go index 831bf4f4..34fdd6e3 100644 --- a/tests/go/solutions/hello/test_hello.go +++ b/tests/go/solutions/hello/test_hello.go @@ -5,5 +5,5 @@ import ( ) func main() { - z01.ChallengeMain() + z01.ChallengeMain("hello") } diff --git a/tests/go/solutions/hiddenp/test_hiddenp.go b/tests/go/solutions/hiddenp/test_hiddenp.go index a61d1c11..c03c78d2 100644 --- a/tests/go/solutions/hiddenp/test_hiddenp.go +++ b/tests/go/solutions/hiddenp/test_hiddenp.go @@ -41,6 +41,6 @@ func main() { } for _, v := range args { - z01.ChallengeMain(v...) + z01.ChallengeMain("hiddenp", v...) } } diff --git a/tests/go/solutions/inter/test_inter.go b/tests/go/solutions/inter/test_inter.go index dc86caad..d60c4e7f 100644 --- a/tests/go/solutions/inter/test_inter.go +++ b/tests/go/solutions/inter/test_inter.go @@ -25,6 +25,6 @@ func main() { } for _, s := range table { - z01.ChallengeMain(strings.Fields(s)...) + z01.ChallengeMain("inter", strings.Fields(s)...) } } diff --git a/tests/go/solutions/ispowerof2/test_ispowerof2.go b/tests/go/solutions/ispowerof2/test_ispowerof2.go index 00fcc37e..5598538c 100644 --- a/tests/go/solutions/ispowerof2/test_ispowerof2.go +++ b/tests/go/solutions/ispowerof2/test_ispowerof2.go @@ -23,7 +23,7 @@ func main() { args = append(args, "8388608") for _, v := range args { - z01.ChallengeMain(strings.Fields(v)...) + z01.ChallengeMain("ispowerof2", strings.Fields(v)...) } - z01.ChallengeMain("1", "2") + z01.ChallengeMain("ispowerof2", "1", "2") } diff --git a/tests/go/solutions/lastword/test_lastword.go b/tests/go/solutions/lastword/test_lastword.go index 28e5134e..bf24fd25 100644 --- a/tests/go/solutions/lastword/test_lastword.go +++ b/tests/go/solutions/lastword/test_lastword.go @@ -17,9 +17,9 @@ func main() { } for _, v := range args { - z01.ChallengeMain(v) + z01.ChallengeMain("lastword", v) } - z01.ChallengeMain("a", "b") - z01.ChallengeMain() + z01.ChallengeMain("lastword", "a", "b") + z01.ChallengeMain("lastword") } diff --git a/tests/go/solutions/nenokku/test_nenokku.go b/tests/go/solutions/nenokku/test_nenokku.go index 678c022a..a88ff67a 100644 --- a/tests/go/solutions/nenokku/test_nenokku.go +++ b/tests/go/solutions/nenokku/test_nenokku.go @@ -48,6 +48,6 @@ func main() { } for _, arg := range table { - z01.ChallengeMain(arg.operations...) + z01.ChallengeMain("nenokku", arg.operations...) } } diff --git a/tests/go/solutions/onlya/test_onlya.go b/tests/go/solutions/onlya/test_onlya.go index 831bf4f4..a071e5f8 100644 --- a/tests/go/solutions/onlya/test_onlya.go +++ b/tests/go/solutions/onlya/test_onlya.go @@ -5,5 +5,5 @@ import ( ) func main() { - z01.ChallengeMain() + z01.ChallengeMain("onlya") } diff --git a/tests/go/solutions/onlyz/test_onlyz.go b/tests/go/solutions/onlyz/test_onlyz.go index 831bf4f4..cde3d1f2 100644 --- a/tests/go/solutions/onlyz/test_onlyz.go +++ b/tests/go/solutions/onlyz/test_onlyz.go @@ -5,5 +5,5 @@ import ( ) func main() { - z01.ChallengeMain() + z01.ChallengeMain("onlyz") } diff --git a/tests/go/solutions/options/test_options.go b/tests/go/solutions/options/test_options.go index 5153e592..4552dc8c 100644 --- a/tests/go/solutions/options/test_options.go +++ b/tests/go/solutions/options/test_options.go @@ -29,6 +29,6 @@ func main() { ) for _, s := range table { - z01.ChallengeMain(strings.Fields(s)...) + z01.ChallengeMain("options", strings.Fields(s)...) } } diff --git a/tests/go/solutions/paramcount/test_paramcount.go b/tests/go/solutions/paramcount/test_paramcount.go index 40ec0a48..4d7147ac 100644 --- a/tests/go/solutions/paramcount/test_paramcount.go +++ b/tests/go/solutions/paramcount/test_paramcount.go @@ -28,8 +28,8 @@ func main() { } for _, v := range args { - z01.ChallengeMain(v...) + z01.ChallengeMain("paramcount", v...) } - z01.ChallengeMain() + z01.ChallengeMain("paramcount") } diff --git a/tests/go/solutions/piglatin/test_piglatin.go b/tests/go/solutions/piglatin/test_piglatin.go index 02d69c5d..6777268d 100644 --- a/tests/go/solutions/piglatin/test_piglatin.go +++ b/tests/go/solutions/piglatin/test_piglatin.go @@ -15,6 +15,6 @@ func main() { } for _, v := range arr { - z01.ChallengeMain(v.first...) + z01.ChallengeMain("piglatin", v.first...) } } diff --git a/tests/go/solutions/printalphabetprog/test_printalphabetprog.go b/tests/go/solutions/printalphabetprog/test_printalphabetprog.go index 831bf4f4..c3bf7a56 100644 --- a/tests/go/solutions/printalphabetprog/test_printalphabetprog.go +++ b/tests/go/solutions/printalphabetprog/test_printalphabetprog.go @@ -5,5 +5,5 @@ import ( ) func main() { - z01.ChallengeMain() + z01.ChallengeMain("printalphabetprog") } diff --git a/tests/go/solutions/printbits/test_printbits.go b/tests/go/solutions/printbits/test_printbits.go index f5731159..3a55ff22 100644 --- a/tests/go/solutions/printbits/test_printbits.go +++ b/tests/go/solutions/printbits/test_printbits.go @@ -20,6 +20,6 @@ func main() { arg = append(arg, z01.RandBasic()) for _, v := range arg { - z01.ChallengeMain(strings.Fields(v)...) + z01.ChallengeMain("printbits", strings.Fields(v)...) } } diff --git a/tests/go/solutions/printchessboard/test_printchessboard.go b/tests/go/solutions/printchessboard/test_printchessboard.go index 6c79a9c8..81d179fa 100644 --- a/tests/go/solutions/printchessboard/test_printchessboard.go +++ b/tests/go/solutions/printchessboard/test_printchessboard.go @@ -27,6 +27,6 @@ func main() { } for _, v := range table { - z01.ChallengeMain(v...) + z01.ChallengeMain("printchessboard", v...) } } diff --git a/tests/go/solutions/printcombprog/test_printcombprog.go b/tests/go/solutions/printcombprog/test_printcombprog.go index 831bf4f4..4a92f53c 100644 --- a/tests/go/solutions/printcombprog/test_printcombprog.go +++ b/tests/go/solutions/printcombprog/test_printcombprog.go @@ -5,5 +5,5 @@ import ( ) func main() { - z01.ChallengeMain() + z01.ChallengeMain("printcombprog") } diff --git a/tests/go/solutions/printdigitsprog/test_printdigitsprog.go b/tests/go/solutions/printdigitsprog/test_printdigitsprog.go index 831bf4f4..aaba36e6 100644 --- a/tests/go/solutions/printdigitsprog/test_printdigitsprog.go +++ b/tests/go/solutions/printdigitsprog/test_printdigitsprog.go @@ -5,5 +5,5 @@ import ( ) func main() { - z01.ChallengeMain() + z01.ChallengeMain("printdigitsprog") } diff --git a/tests/go/solutions/printhex/test_printhex.go b/tests/go/solutions/printhex/test_printhex.go index acc8e05a..0e065fed 100644 --- a/tests/go/solutions/printhex/test_printhex.go +++ b/tests/go/solutions/printhex/test_printhex.go @@ -24,6 +24,6 @@ func main() { } for _, s := range table { - z01.ChallengeMain(strings.Fields(s)...) + z01.ChallengeMain("printhex", strings.Fields(s)...) } } diff --git a/tests/go/solutions/printrevcombprog/test_printrevcombprog.go b/tests/go/solutions/printrevcombprog/test_printrevcombprog.go index 831bf4f4..42bc0fb7 100644 --- a/tests/go/solutions/printrevcombprog/test_printrevcombprog.go +++ b/tests/go/solutions/printrevcombprog/test_printrevcombprog.go @@ -5,5 +5,5 @@ import ( ) func main() { - z01.ChallengeMain() + z01.ChallengeMain("printrevcombprog") } diff --git a/tests/go/solutions/printreversealphabetprog/test_printreversealphabetprog.go b/tests/go/solutions/printreversealphabetprog/test_printreversealphabetprog.go index 831bf4f4..19ee253a 100644 --- a/tests/go/solutions/printreversealphabetprog/test_printreversealphabetprog.go +++ b/tests/go/solutions/printreversealphabetprog/test_printreversealphabetprog.go @@ -5,5 +5,5 @@ import ( ) func main() { - z01.ChallengeMain() + z01.ChallengeMain("printreversealphabetprog") } diff --git a/tests/go/solutions/printstrprog/test_printstrprog.go b/tests/go/solutions/printstrprog/test_printstrprog.go index 69e063b7..83455cd9 100644 --- a/tests/go/solutions/printstrprog/test_printstrprog.go +++ b/tests/go/solutions/printstrprog/test_printstrprog.go @@ -7,7 +7,7 @@ import ( func main() { table := z01.MultRandASCII() for _, arg := range table { - z01.ChallengeMain(arg) + z01.ChallengeMain("printstrprog", arg) } - z01.ChallengeMain("Hello World!") + z01.ChallengeMain("printstrprog", "Hello World!") } diff --git a/tests/go/solutions/range/test_range.go b/tests/go/solutions/range/test_range.go index 70637ed5..5f564481 100644 --- a/tests/go/solutions/range/test_range.go +++ b/tests/go/solutions/range/test_range.go @@ -10,12 +10,12 @@ func main() { for i := 0; i < 10; i++ { start := z01.RandIntBetween(-20, 20) end := z01.RandIntBetween(-20, 20) - z01.ChallengeMain(strconv.Itoa(start), strconv.Itoa(end)) + z01.ChallengeMain("range", strconv.Itoa(start), strconv.Itoa(end)) } - z01.ChallengeMain("2", "1", "3") - z01.ChallengeMain("a", "1") - z01.ChallengeMain("1", "b") - z01.ChallengeMain("1", "nan") - z01.ChallengeMain("nan", "b") - z01.ChallengeMain() + z01.ChallengeMain("range", "2", "1", "3") + z01.ChallengeMain("range", "a", "1") + z01.ChallengeMain("range", "1", "b") + z01.ChallengeMain("range", "1", "nan") + z01.ChallengeMain("range", "nan", "b") + z01.ChallengeMain("range") } diff --git a/tests/go/solutions/repeatalpha/test_repeatalpha.go b/tests/go/solutions/repeatalpha/test_repeatalpha.go index 79d7ca78..c0eea3c9 100644 --- a/tests/go/solutions/repeatalpha/test_repeatalpha.go +++ b/tests/go/solutions/repeatalpha/test_repeatalpha.go @@ -19,6 +19,6 @@ func main() { } for _, v := range args { - z01.ChallengeMain(v) + z01.ChallengeMain("repeatalpha", v) } } diff --git a/tests/go/solutions/reverserange/test_reverserange.go b/tests/go/solutions/reverserange/test_reverserange.go index 70637ed5..13233f9e 100644 --- a/tests/go/solutions/reverserange/test_reverserange.go +++ b/tests/go/solutions/reverserange/test_reverserange.go @@ -10,12 +10,12 @@ func main() { for i := 0; i < 10; i++ { start := z01.RandIntBetween(-20, 20) end := z01.RandIntBetween(-20, 20) - z01.ChallengeMain(strconv.Itoa(start), strconv.Itoa(end)) + z01.ChallengeMain("reverserange", strconv.Itoa(start), strconv.Itoa(end)) } - z01.ChallengeMain("2", "1", "3") - z01.ChallengeMain("a", "1") - z01.ChallengeMain("1", "b") - z01.ChallengeMain("1", "nan") - z01.ChallengeMain("nan", "b") - z01.ChallengeMain() + z01.ChallengeMain("reverserange", "2", "1", "3") + z01.ChallengeMain("reverserange", "a", "1") + z01.ChallengeMain("reverserange", "1", "b") + z01.ChallengeMain("reverserange", "1", "nan") + z01.ChallengeMain("reverserange", "nan", "b") + z01.ChallengeMain("reverserange") } diff --git a/tests/go/solutions/reversestrcap/test_reversestrcap.go b/tests/go/solutions/reversestrcap/test_reversestrcap.go index c981259c..64712bd9 100644 --- a/tests/go/solutions/reversestrcap/test_reversestrcap.go +++ b/tests/go/solutions/reversestrcap/test_reversestrcap.go @@ -16,7 +16,7 @@ func main() { args = append(args, []string{""}) for _, v := range args { - z01.ChallengeMain(v...) + z01.ChallengeMain("reversestrcap", v...) } - z01.ChallengeMain() + z01.ChallengeMain("reversestrcap") } diff --git a/tests/go/solutions/revwstr/test_revwstr.go b/tests/go/solutions/revwstr/test_revwstr.go index f4eecb3f..24a313e8 100644 --- a/tests/go/solutions/revwstr/test_revwstr.go +++ b/tests/go/solutions/revwstr/test_revwstr.go @@ -26,9 +26,9 @@ func main() { } for _, s := range table { - z01.ChallengeMain(s) + z01.ChallengeMain("revwstr", s) } - z01.ChallengeMain() - z01.ChallengeMain("1param", "2param", "3param", "4param") + z01.ChallengeMain("revwstr") + z01.ChallengeMain("revwstr", "1param", "2param", "3param", "4param") } diff --git a/tests/go/solutions/robottoorigin/test_robottoorigin.go b/tests/go/solutions/robottoorigin/test_robottoorigin.go index 8fa333b6..908de959 100644 --- a/tests/go/solutions/robottoorigin/test_robottoorigin.go +++ b/tests/go/solutions/robottoorigin/test_robottoorigin.go @@ -18,6 +18,6 @@ func main() { } for _, arg := range table { - z01.ChallengeMain(arg) + z01.ChallengeMain("robottoorigin", arg) } } diff --git a/tests/go/solutions/romannumbers/test_romannumbers.go b/tests/go/solutions/romannumbers/test_romannumbers.go index 6bc290a8..83abf7e0 100644 --- a/tests/go/solutions/romannumbers/test_romannumbers.go +++ b/tests/go/solutions/romannumbers/test_romannumbers.go @@ -19,6 +19,6 @@ func main() { rand = append(rand, strconv.Itoa(z01.RandIntBetween(0, 4000))) } for _, v := range rand { - z01.ChallengeMain(v) + z01.ChallengeMain("romannumbers", v) } } diff --git a/tests/go/solutions/rostring/test_rostring.go b/tests/go/solutions/rostring/test_rostring.go index 254240c7..58b9355a 100644 --- a/tests/go/solutions/rostring/test_rostring.go +++ b/tests/go/solutions/rostring/test_rostring.go @@ -17,13 +17,13 @@ func main() { } for _, v := range corrArgs { - z01.ChallengeMain(v) + z01.ChallengeMain("rostring", v) } //without parameter - z01.ChallengeMain() + z01.ChallengeMain("rostring") //with more than one parameter - z01.ChallengeMain("this", "is") - z01.ChallengeMain("not", "good", "for you") + z01.ChallengeMain("rostring", "this", "is") + z01.ChallengeMain("rostring", "not", "good", "for you") } diff --git a/tests/go/solutions/rot13/test_rot13.go b/tests/go/solutions/rot13/test_rot13.go index f150bd6e..18faaaeb 100644 --- a/tests/go/solutions/rot13/test_rot13.go +++ b/tests/go/solutions/rot13/test_rot13.go @@ -10,8 +10,8 @@ func main() { table = append(table, "a b c d e f g h ijklmnopqrstuvwxyz A B C D E FGHIJKLMNOPRSTUVWXYZ") for _, s := range table { - z01.ChallengeMain(s) + z01.ChallengeMain("rot13", s) } - z01.ChallengeMain("1 argument", "2 arguments") - z01.ChallengeMain("1 argument", "2 arguments", "3 arguments") + z01.ChallengeMain("rot13", "1 argument", "2 arguments") + z01.ChallengeMain("rot13", "1 argument", "2 arguments", "3 arguments") } diff --git a/tests/go/solutions/rot14prog/test_rot14prog.go b/tests/go/solutions/rot14prog/test_rot14prog.go index 455c505d..6fa30f95 100644 --- a/tests/go/solutions/rot14prog/test_rot14prog.go +++ b/tests/go/solutions/rot14prog/test_rot14prog.go @@ -19,8 +19,8 @@ func main() { for _, arg := range table { for _, s := range arg.data { - z01.ChallengeMain("" + s + "") + z01.ChallengeMain("rot14prog", "" + s + "") } } - z01.ChallengeMain("", "something", "something1") + z01.ChallengeMain("rot14prog", "", "something", "something1") } diff --git a/tests/go/solutions/rpncalc/test_rpncalc.go b/tests/go/solutions/rpncalc/test_rpncalc.go index 761ff597..a12be7ab 100644 --- a/tests/go/solutions/rpncalc/test_rpncalc.go +++ b/tests/go/solutions/rpncalc/test_rpncalc.go @@ -23,8 +23,8 @@ func main() { } for _, v := range args { - z01.ChallengeMain(v) + z01.ChallengeMain("rpncalc", v) } - z01.ChallengeMain() - z01.ChallengeMain("1 2 * 3 * 4 +", "10 33 - 12 %") + z01.ChallengeMain("rpncalc") + z01.ChallengeMain("rpncalc", "1 2 * 3 * 4 +", "10 33 - 12 %") } diff --git a/tests/go/solutions/searchreplace/test_searchreplace.go b/tests/go/solutions/searchreplace/test_searchreplace.go index f463cab0..46323094 100644 --- a/tests/go/solutions/searchreplace/test_searchreplace.go +++ b/tests/go/solutions/searchreplace/test_searchreplace.go @@ -44,6 +44,6 @@ func main() { ) for _, arg := range table { - z01.ChallengeMain(arg.dataSearched, arg.letterLookedFor, arg.letterReplacing) + z01.ChallengeMain("searchreplace", arg.dataSearched, arg.letterLookedFor, arg.letterReplacing) } } diff --git a/tests/go/solutions/strrevprog/test_strrevprog.go b/tests/go/solutions/strrevprog/test_strrevprog.go index 552392b7..19c9fe5e 100644 --- a/tests/go/solutions/strrevprog/test_strrevprog.go +++ b/tests/go/solutions/strrevprog/test_strrevprog.go @@ -12,6 +12,6 @@ func main() { "Hola!", ) for _, arg := range table { - z01.ChallengeMain(arg) + z01.ChallengeMain("strrevprog", arg) } } diff --git a/tests/go/solutions/switchcase/test_switchcase.go b/tests/go/solutions/switchcase/test_switchcase.go index e3c00208..1377f254 100644 --- a/tests/go/solutions/switchcase/test_switchcase.go +++ b/tests/go/solutions/switchcase/test_switchcase.go @@ -10,6 +10,6 @@ func main() { table = append(table, "abcdefghi jklmnop qrstuvwxyz ABCDEFGHI JKLMNOPQR STUVWXYZ ! ") for _, s := range table { - z01.ChallengeMain(s) + z01.ChallengeMain("switchcase", s) } } diff --git a/tests/go/solutions/tabmult/test_tabmult.go b/tests/go/solutions/tabmult/test_tabmult.go index 844d11be..c4d0966c 100644 --- a/tests/go/solutions/tabmult/test_tabmult.go +++ b/tests/go/solutions/tabmult/test_tabmult.go @@ -16,6 +16,6 @@ func main() { } for _, arg := range table { - z01.ChallengeMain(arg) + z01.ChallengeMain("tabmult", arg) } } diff --git a/tests/go/solutions/union/test_union.go b/tests/go/solutions/union/test_union.go index 3874e6a3..0065b47e 100644 --- a/tests/go/solutions/union/test_union.go +++ b/tests/go/solutions/union/test_union.go @@ -22,6 +22,6 @@ func main() { args := [][]string{arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8} for _, v := range args { - z01.ChallengeMain(v...) + z01.ChallengeMain("union", v...) } } diff --git a/tests/go/solutions/uniqueoccurences/test_uniqueoccurences.go b/tests/go/solutions/uniqueoccurences/test_uniqueoccurences.go index c6f9cd66..685edf20 100644 --- a/tests/go/solutions/uniqueoccurences/test_uniqueoccurences.go +++ b/tests/go/solutions/uniqueoccurences/test_uniqueoccurences.go @@ -20,6 +20,6 @@ func main() { } for _, arg := range table { - z01.ChallengeMain(arg) + z01.ChallengeMain("uniqueoccurences", arg) } } diff --git a/tests/go/solutions/wdmatch/test_wdmatch.go b/tests/go/solutions/wdmatch/test_wdmatch.go index 771e95ec..a57764c7 100644 --- a/tests/go/solutions/wdmatch/test_wdmatch.go +++ b/tests/go/solutions/wdmatch/test_wdmatch.go @@ -16,6 +16,6 @@ func main() { ) for _, s := range table { - z01.ChallengeMain(strings.Fields(s)...) + z01.ChallengeMain("wdmatch", strings.Fields(s)...) } } diff --git a/tests/go/test_atoibaseprog.go b/tests/go/test_atoibaseprog.go index e385d031..0741d89c 100644 --- a/tests/go/test_atoibaseprog.go +++ b/tests/go/test_atoibaseprog.go @@ -84,8 +84,8 @@ func main() { node{s: "bbbbbab", base: "-ab"}, ) for _, arg := range table { - z01.ChallengeMain(arg.s, arg.base) + z01.ChallengeMain("atoibaseprog", arg.s, arg.base) } - z01.ChallengeMain() - z01.ChallengeMain("125", "0123456789", "something") + z01.ChallengeMain("atoibaseprog") + z01.ChallengeMain("atoibaseprog", "125", "0123456789", "something") } diff --git a/tests/go/test_boolean.go b/tests/go/test_boolean.go index a9498036..c6ad8986 100644 --- a/tests/go/test_boolean.go +++ b/tests/go/test_boolean.go @@ -10,6 +10,6 @@ func main() { table := append(z01.MultRandWords(), "1 2 3 4 5") for _, s := range table { - z01.ChallengeMain(strings.Fields(s)...) + z01.ChallengeMain("boolean", strings.Fields(s)...) } } diff --git a/tests/go/test_comcheck.go b/tests/go/test_comcheck.go index a0ea5ce9..638400a0 100644 --- a/tests/go/test_comcheck.go +++ b/tests/go/test_comcheck.go @@ -17,6 +17,6 @@ func main() { "as ds galaxy 01 asd") for _, s := range table { - z01.ChallengeMain(strings.Fields(s)...) + z01.ChallengeMain("comcheck", strings.Fields(s)...) } } diff --git a/tests/go/test_displayfile.go b/tests/go/test_displayfile.go index 6b7cc3a4..24e405b5 100644 --- a/tests/go/test_displayfile.go +++ b/tests/go/test_displayfile.go @@ -15,6 +15,6 @@ func main() { } table := []string{"", pathFileName, "quest8.txt asdsada"} for _, s := range table { - z01.ChallengeMain(strings.Fields(s)...) + z01.ChallengeMain("displayfile", strings.Fields(s)...) } } diff --git a/tests/go/test_doop.go b/tests/go/test_doop.go index 4da83165..1093c040 100644 --- a/tests/go/test_doop.go +++ b/tests/go/test_doop.go @@ -37,6 +37,6 @@ func main() { table = append(table, "9223372036854775809 - 3") table = append(table, "9223372036854775807 * 3") for _, s := range table { - z01.ChallengeMain(strings.Fields(s)...) + z01.ChallengeMain("doop", strings.Fields(s)...) } } diff --git a/tests/go/test_fixthemain.go b/tests/go/test_fixthemain.go index 831bf4f4..395b2288 100644 --- a/tests/go/test_fixthemain.go +++ b/tests/go/test_fixthemain.go @@ -5,5 +5,5 @@ import ( ) func main() { - z01.ChallengeMain() + z01.ChallengeMain("fixthemain") } diff --git a/tests/go/test_flags.go b/tests/go/test_flags.go index d4d18bea..86016ab8 100644 --- a/tests/go/test_flags.go +++ b/tests/go/test_flags.go @@ -30,20 +30,20 @@ func main() { node.randArg = append(node.randArg, "") - z01.ChallengeMain(node.flagsShorthand[0]+"v2", "v1") - z01.ChallengeMain(node.flagsShorthand[1], "v1") - z01.ChallengeMain("-h") - z01.ChallengeMain("--help") - z01.ChallengeMain() + z01.ChallengeMain("flags", node.flagsShorthand[0]+"v2", "v1") + z01.ChallengeMain("flags", node.flagsShorthand[1], "v1") + z01.ChallengeMain("flags", "-h") + z01.ChallengeMain("flags", "--help") + z01.ChallengeMain("flags") for _, v2 := range node.randArgFlag { for _, v1 := range node.randArg { - z01.ChallengeMain(node.flags[0]+v2, node.flags[1], v1) + z01.ChallengeMain("flags", node.flags[0]+v2, node.flags[1], v1) } } for _, v2 := range node.randArgFlag { for _, v1 := range node.randArg { - z01.ChallengeMain(node.flagsShorthand[0]+v2, node.flagsShorthand[1], v1) + z01.ChallengeMain("flags", node.flagsShorthand[0]+v2, node.flagsShorthand[1], v1) } } } diff --git a/tests/go/test_nbrconvertalpha.go b/tests/go/test_nbrconvertalpha.go index d1ba3fb2..ef32ea9c 100644 --- a/tests/go/test_nbrconvertalpha.go +++ b/tests/go/test_nbrconvertalpha.go @@ -39,7 +39,7 @@ func main() { for _, i := range table { for _, a := range i.array { - z01.ChallengeMain(strings.Fields((a))...) + z01.ChallengeMain("nbrconvertalpha", strings.Fields((a))...) } } } diff --git a/tests/go/test_paramcount.go b/tests/go/test_paramcount.go index 40ec0a48..4d7147ac 100644 --- a/tests/go/test_paramcount.go +++ b/tests/go/test_paramcount.go @@ -28,8 +28,8 @@ func main() { } for _, v := range args { - z01.ChallengeMain(v...) + z01.ChallengeMain("paramcount", v...) } - z01.ChallengeMain() + z01.ChallengeMain("paramcount") } diff --git a/tests/go/test_pilot.go b/tests/go/test_pilot.go index 831bf4f4..6dbec04e 100644 --- a/tests/go/test_pilot.go +++ b/tests/go/test_pilot.go @@ -5,5 +5,5 @@ import ( ) func main() { - z01.ChallengeMain() + z01.ChallengeMain("pilot") } diff --git a/tests/go/test_point.go b/tests/go/test_point.go index 0939f868..9571c848 100644 --- a/tests/go/test_point.go +++ b/tests/go/test_point.go @@ -5,5 +5,5 @@ import ( ) func main() { - z01.ChallengeMain("") + z01.ChallengeMain("point", "") } diff --git a/tests/go/test_printalphabet.go b/tests/go/test_printalphabet.go index 831bf4f4..62a9e7bf 100644 --- a/tests/go/test_printalphabet.go +++ b/tests/go/test_printalphabet.go @@ -5,5 +5,5 @@ import ( ) func main() { - z01.ChallengeMain() + z01.ChallengeMain("printalphabet") } diff --git a/tests/go/test_printdigits.go b/tests/go/test_printdigits.go index 831bf4f4..41f4c0c5 100644 --- a/tests/go/test_printdigits.go +++ b/tests/go/test_printdigits.go @@ -5,5 +5,5 @@ import ( ) func main() { - z01.ChallengeMain() + z01.ChallengeMain("printdigits") } diff --git a/tests/go/test_printparams.go b/tests/go/test_printparams.go index 6f060e2f..9e585d25 100644 --- a/tests/go/test_printparams.go +++ b/tests/go/test_printparams.go @@ -9,6 +9,6 @@ import ( func main() { table := append(z01.MultRandWords(), "choumi is the best cat") for _, s := range table { - z01.ChallengeMain(strings.Fields(s)...) + z01.ChallengeMain("printparams", strings.Fields(s)...) } } diff --git a/tests/go/test_printreversealphabet.go b/tests/go/test_printreversealphabet.go index 831bf4f4..62577c09 100644 --- a/tests/go/test_printreversealphabet.go +++ b/tests/go/test_printreversealphabet.go @@ -5,5 +5,5 @@ import ( ) func main() { - z01.ChallengeMain() + z01.ChallengeMain("printreversealphabet") } diff --git a/tests/go/test_raid2.go b/tests/go/test_raid2.go index b1fab0cf..b99e9155 100644 --- a/tests/go/test_raid2.go +++ b/tests/go/test_raid2.go @@ -197,15 +197,15 @@ func main() { invalid := [][]string{argin1, argin2, argin3, argin4, argin5} for _, v := range valid { - z01.ChallengeMain(v...) + z01.ChallengeMain("raid2", v...) } for _, i := range invalid { - z01.ChallengeMain(i...) + z01.ChallengeMain("raid2", i...) } // No arguments - z01.ChallengeMain() + z01.ChallengeMain("raid2") // Wrong number of arguments - z01.ChallengeMain("not", "a", "sudoku") + z01.ChallengeMain("raid2", "not", "a", "sudoku") } diff --git a/tests/go/test_rectangle.go b/tests/go/test_rectangle.go index 0939f868..720843b6 100644 --- a/tests/go/test_rectangle.go +++ b/tests/go/test_rectangle.go @@ -5,5 +5,5 @@ import ( ) func main() { - z01.ChallengeMain("") + z01.ChallengeMain("rectangle") } diff --git a/tests/go/test_revparams.go b/tests/go/test_revparams.go index 47df036e..bf9e1096 100644 --- a/tests/go/test_revparams.go +++ b/tests/go/test_revparams.go @@ -6,5 +6,5 @@ import ( func main() { args := []string{"choumi", "is", "the", "best", "cat"} - z01.ChallengeMain(args...) + z01.ChallengeMain("revparams", args...) } diff --git a/tests/go/test_rotatevowels.go b/tests/go/test_rotatevowels.go index f9347028..f564b2fb 100644 --- a/tests/go/test_rotatevowels.go +++ b/tests/go/test_rotatevowels.go @@ -18,12 +18,12 @@ func main() { arr = append(arr, "") for _, v := range arr { - z01.ChallengeMain(strings.Fields(v)...) + z01.ChallengeMain("rotatevowels", strings.Fields(v)...) } - z01.ChallengeMain("Hello World") - z01.ChallengeMain("HEllO World", "problem solved") - z01.ChallengeMain("str", "shh", "psst") - z01.ChallengeMain("happy thoughts", "good luck") - z01.ChallengeMain("al's elEphAnt is overly underweight!") - z01.ChallengeMain("aEi", "Ou") + z01.ChallengeMain("rotatevowels", "Hello World") + z01.ChallengeMain("rotatevowels", "HEllO World", "problem solved") + z01.ChallengeMain("rotatevowels", "str", "shh", "psst") + z01.ChallengeMain("rotatevowels", "happy thoughts", "good luck") + z01.ChallengeMain("rotatevowels", "al's elEphAnt is overly underweight!") + z01.ChallengeMain("rotatevowels", "aEi", "Ou") } diff --git a/tests/go/test_sortparams.go b/tests/go/test_sortparams.go index 12e7d03f..e1dd3a61 100644 --- a/tests/go/test_sortparams.go +++ b/tests/go/test_sortparams.go @@ -6,5 +6,5 @@ import ( func main() { args := []string{"1", "a", "2", "A", "3", "b", "4", "C"} - z01.ChallengeMain(args...) + z01.ChallengeMain("sortparams", args...) }