From 512003bb7bdbc8990a5a6fbaac3e37d57c3c6009 Mon Sep 17 00:00:00 2001 From: Xavier Petit <32063953+xpetit@users.noreply.github.com> Date: Mon, 27 Apr 2020 04:46:29 +0200 Subject: [PATCH] Fix mistakes --- tests/go/prog/test_lastword.go | 2 +- tests/go/prog/test_nbrconvertalpha.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/go/prog/test_lastword.go b/tests/go/prog/test_lastword.go index e291c1fcd..be5de0ae4 100644 --- a/tests/go/prog/test_lastword.go +++ b/tests/go/prog/test_lastword.go @@ -10,7 +10,7 @@ func main() { " lorem,ipsum ", } - args = append(args, lib.MultRandWords()) + args = append(args, lib.MultRandWords()...) for _, v := range args { lib.ChallengeMain("lastword", v) diff --git a/tests/go/prog/test_nbrconvertalpha.go b/tests/go/prog/test_nbrconvertalpha.go index 0b4aa3fb0..9c7a12c19 100644 --- a/tests/go/prog/test_nbrconvertalpha.go +++ b/tests/go/prog/test_nbrconvertalpha.go @@ -8,14 +8,14 @@ import ( ) func main() { - table := []string{{ + table := []string{ "--upper 8 5 25", "8 5 12 12 15", "12 5 7 5 14 56 4 1 18 25", "12 5 7 5 14 56 4 1 18 25 32 86 h", "32 86 h", "", - }} + } for i := 0; i < 5; i++ { m := lib.MultRandIntBetween(1, 46) s := ""