From 1487ee29e9d24cc3ffca0cfa3188764b138afa3c Mon Sep 17 00:00:00 2001 From: lee Date: Wed, 26 Feb 2020 09:46:18 +0000 Subject: [PATCH] correction of spaces and tabs --- subjects/alphacount.fr.md | 10 ++-- subjects/any.fr.md | 16 +++---- subjects/appendrange.fr.md | 8 ++-- subjects/atoi.fr.md | 56 +++++++++++----------- subjects/atoibase.fr.md | 14 +++--- subjects/atoibaseprog.fr.md | 12 ++--- subjects/basicatoi.fr.md | 22 ++++----- subjects/basicatoi2.fr.md | 32 ++++++------- subjects/btreeapplypostorder.en.md | 14 +++--- subjects/doop.fr.md | 6 +-- subjects/enigma.fr.md | 74 +++++++++++++++--------------- subjects/findnextprime.fr.md | 12 ++--- subjects/who-are-you.en.md | 4 +- subjects/who-are-you.fr.md | 4 +- 14 files changed, 142 insertions(+), 142 deletions(-) diff --git a/subjects/alphacount.fr.md b/subjects/alphacount.fr.md index 32fca1f1..da478b4f 100644 --- a/subjects/alphacount.fr.md +++ b/subjects/alphacount.fr.md @@ -23,14 +23,14 @@ Here is a possible program to test your function : package main import ( - "fmt" - piscine ".." + "fmt" + piscine ".." ) func main() { - str := "Hello 78 World! 4455 /" - nb := piscine.AlphaCount(str) - fmt.Println(nb) + str := "Hello 78 World! 4455 /" + nb := piscine.AlphaCount(str) + fmt.Println(nb) } ``` diff --git a/subjects/any.fr.md b/subjects/any.fr.md index 88820eea..9e2dc88e 100644 --- a/subjects/any.fr.md +++ b/subjects/any.fr.md @@ -22,19 +22,19 @@ Voici un éventuel programme pour tester votre fonction : package main import ( - "fmt" - piscine ".." + "fmt" + piscine ".." ) func main() { - tab1 := []string{"Hello", "how", "are", "you"} - tab2 := []string{"This", "is", "4", "you"} + tab1 := []string{"Hello", "how", "are", "you"} + tab2 := []string{"This", "is", "4", "you"} - result1 := piscine.Any(piscine.IsNumeric, tab1) - result2 := piscine.Any(piscine.IsNumeric, tab2) + result1 := piscine.Any(piscine.IsNumeric, tab1) + result2 := piscine.Any(piscine.IsNumeric, tab2) - fmt.Println(result1) - fmt.Println(result2) + fmt.Println(result1) + fmt.Println(result2) } ``` diff --git a/subjects/appendrange.fr.md b/subjects/appendrange.fr.md index c1dc93db..66f0b91d 100644 --- a/subjects/appendrange.fr.md +++ b/subjects/appendrange.fr.md @@ -26,13 +26,13 @@ Voici un éventuel programme pour tester votre fonction : package main import ( - "fmt" - piscine ".." + "fmt" + piscine ".." ) func main() { - fmt.Println(piscine.AppendRange(5, 10)) - fmt.Println(piscine.AppendRange(10, 5)) + fmt.Println(piscine.AppendRange(5, 10)) + fmt.Println(piscine.AppendRange(10, 5)) } ``` diff --git a/subjects/atoi.fr.md b/subjects/atoi.fr.md index 964d84dd..44aca8e0 100644 --- a/subjects/atoi.fr.md +++ b/subjects/atoi.fr.md @@ -26,37 +26,37 @@ Voici un éventuel programme pour tester votre fonction : package main import ( - "fmt" - piscine ".." + "fmt" + piscine ".." ) func main() { - s := "12345" - s2 := "0000000012345" - s3 := "012 345" - s4 := "Hello World!" - s5 := "+1234" - s6 := "-1234" - s7 := "++1234" - s8 := "--1234" - - n := piscine.Atoi(s) - n2 := piscine.Atoi(s2) - n3 := piscine.Atoi(s3) - n4 := piscine.Atoi(s4) - n5 := piscine.Atoi(s5) - n6 := piscine.Atoi(s6) - n7 := piscine.Atoi(s7) - n8 := piscine.Atoi(s8) - - fmt.Println(n) - fmt.Println(n2) - fmt.Println(n3) - fmt.Println(n4) - fmt.Println(n5) - fmt.Println(n6) - fmt.Println(n7) - fmt.Println(n8) + s := "12345" + s2 := "0000000012345" + s3 := "012 345" + s4 := "Hello World!" + s5 := "+1234" + s6 := "-1234" + s7 := "++1234" + s8 := "--1234" + + n := piscine.Atoi(s) + n2 := piscine.Atoi(s2) + n3 := piscine.Atoi(s3) + n4 := piscine.Atoi(s4) + n5 := piscine.Atoi(s5) + n6 := piscine.Atoi(s6) + n7 := piscine.Atoi(s7) + n8 := piscine.Atoi(s8) + + fmt.Println(n) + fmt.Println(n2) + fmt.Println(n3) + fmt.Println(n4) + fmt.Println(n5) + fmt.Println(n6) + fmt.Println(n7) + fmt.Println(n8) } ``` diff --git a/subjects/atoibase.fr.md b/subjects/atoibase.fr.md index fbd06a48..096bca6a 100644 --- a/subjects/atoibase.fr.md +++ b/subjects/atoibase.fr.md @@ -32,16 +32,16 @@ Voici un éventuel programme pour tester votre fonction : package main import ( - "fmt" - piscine ".." + "fmt" + piscine ".." ) func main() { - fmt.Println(piscine.AtoiBase("125", "0123456789")) - fmt.Println(piscine.AtoiBase("1111101", "01")) - fmt.Println(piscine.AtoiBase("7D", "0123456789ABCDEF")) - fmt.Println(piscine.AtoiBase("uoi", "choumi")) - fmt.Println(piscine.AtoiBase("bbbbbab", "-ab")) + fmt.Println(piscine.AtoiBase("125", "0123456789")) + fmt.Println(piscine.AtoiBase("1111101", "01")) + fmt.Println(piscine.AtoiBase("7D", "0123456789ABCDEF")) + fmt.Println(piscine.AtoiBase("uoi", "choumi")) + fmt.Println(piscine.AtoiBase("bbbbbab", "-ab")) } ``` diff --git a/subjects/atoibaseprog.fr.md b/subjects/atoibaseprog.fr.md index 1e6410d7..b9029076 100644 --- a/subjects/atoibaseprog.fr.md +++ b/subjects/atoibaseprog.fr.md @@ -43,15 +43,15 @@ Voici un éventuel programme pour tester votre fonction : package main import ( - "fmt" + "fmt" ) func main() { - fmt.Println(AtoiBase("125", "0123456789")) - fmt.Println(AtoiBase("1111101", "01")) - fmt.Println(AtoiBase("7D", "0123456789ABCDEF")) - fmt.Println(AtoiBase("uoi", "choumi")) - fmt.Println(AtoiBase("bbbbbab", "-ab")) + fmt.Println(AtoiBase("125", "0123456789")) + fmt.Println(AtoiBase("1111101", "01")) + fmt.Println(AtoiBase("7D", "0123456789ABCDEF")) + fmt.Println(AtoiBase("uoi", "choumi")) + fmt.Println(AtoiBase("bbbbbab", "-ab")) } ``` diff --git a/subjects/basicatoi.fr.md b/subjects/basicatoi.fr.md index 66f73178..9a68092c 100644 --- a/subjects/basicatoi.fr.md +++ b/subjects/basicatoi.fr.md @@ -26,22 +26,22 @@ Voici un éventuel programme pour tester votre fonction : package main import ( - "fmt" - piscine ".." + "fmt" + piscine ".." ) func main() { - s := "12345" - s2 := "0000000012345" - s3 := "000000" + s := "12345" + s2 := "0000000012345" + s3 := "000000" - n := piscine.BasicAtoi(s) - n2 := piscine.BasicAtoi(s2) - n3 := piscine.BasicAtoi(s3) + n := piscine.BasicAtoi(s) + n2 := piscine.BasicAtoi(s2) + n3 := piscine.BasicAtoi(s3) - fmt.Println(n) - fmt.Println(n2) - fmt.Println(n3) + fmt.Println(n) + fmt.Println(n2) + fmt.Println(n3) } ``` diff --git a/subjects/basicatoi2.fr.md b/subjects/basicatoi2.fr.md index d3e546f0..67e6a3b5 100644 --- a/subjects/basicatoi2.fr.md +++ b/subjects/basicatoi2.fr.md @@ -26,25 +26,25 @@ Voici un éventuel programme pour tester votre fonction : package main import ( - "fmt" - piscine ".." + "fmt" + piscine ".." ) func main() { - s := "12345" - s2 := "0000000012345" - s3 := "012 345" - s4 := "Hello World!" - - n := piscine.BasicAtoi2(s) - n2 := piscine.BasicAtoi2(s2) - n3 := piscine.BasicAtoi2(s3) - n4 := piscine.BasicAtoi2(s4) - - fmt.Println(n) - fmt.Println(n2) - fmt.Println(n3) - fmt.Println(n4) + s := "12345" + s2 := "0000000012345" + s3 := "012 345" + s4 := "Hello World!" + + n := piscine.BasicAtoi2(s) + n2 := piscine.BasicAtoi2(s2) + n3 := piscine.BasicAtoi2(s3) + n4 := piscine.BasicAtoi2(s4) + + fmt.Println(n) + fmt.Println(n2) + fmt.Println(n3) + fmt.Println(n4) } ``` diff --git a/subjects/btreeapplypostorder.en.md b/subjects/btreeapplypostorder.en.md index b2b6c8ad..ab5a245f 100644 --- a/subjects/btreeapplypostorder.en.md +++ b/subjects/btreeapplypostorder.en.md @@ -20,16 +20,16 @@ Here is a possible program to test your function : package main import ( - "fmt" - piscine ".." + "fmt" + piscine ".." ) func main() { - root := &piscine.TreeNode{Data: "4"} - piscine.BTreeInsertData(root, "1") - piscine.BTreeInsertData(root, "7") - piscine.BTreeInsertData(root, "5") - piscine.BTreeApplyPostorder(root, fmt.Println) + root := &piscine.TreeNode{Data: "4"} + piscine.BTreeInsertData(root, "1") + piscine.BTreeInsertData(root, "7") + piscine.BTreeInsertData(root, "5") + piscine.BTreeApplyPostorder(root, fmt.Println) } ``` diff --git a/subjects/doop.fr.md b/subjects/doop.fr.md index 8a12b3a9..5fe81bdd 100644 --- a/subjects/doop.fr.md +++ b/subjects/doop.fr.md @@ -6,9 +6,9 @@ Le programme doit être utilisé avec trois arguments: -- Une valeur -- Un opérateur -- Une autre valeur +- Une valeur +- Un opérateur +- Une autre valeur En cas d'opérateur invalide le programme affiche `0`. diff --git a/subjects/enigma.fr.md b/subjects/enigma.fr.md index 8b268587..57cbf1d8 100644 --- a/subjects/enigma.fr.md +++ b/subjects/enigma.fr.md @@ -26,46 +26,46 @@ Voici un éventuel programme pour tester votre fonction : package main import ( - "fmt" - piscine ".." + "fmt" + piscine ".." ) func main() { - x := 5 - y := &x - z := &y - a := &z - - w := 2 - b := &w - - u := 7 - e := &u - f := &e - g := &f - h := &g - i := &h - j := &i - c := &j - - k := 6 - l := &k - m := &l - n := &m - d := &n - - fmt.Println(***a) - fmt.Println(*b) - fmt.Println(*******c) - fmt.Println(****d) - - student.Enigma(a, b, c, d) - - fmt.Println("After using Enigma") - fmt.Println(***a) - fmt.Println(*b) - fmt.Println(*******c) - fmt.Println(****d) + x := 5 + y := &x + z := &y + a := &z + + w := 2 + b := &w + + u := 7 + e := &u + f := &e + g := &f + h := &g + i := &h + j := &i + c := &j + + k := 6 + l := &k + m := &l + n := &m + d := &n + + fmt.Println(***a) + fmt.Println(*b) + fmt.Println(*******c) + fmt.Println(****d) + + student.Enigma(a, b, c, d) + + fmt.Println("After using Enigma") + fmt.Println(***a) + fmt.Println(*b) + fmt.Println(*******c) + fmt.Println(****d) } ``` diff --git a/subjects/findnextprime.fr.md b/subjects/findnextprime.fr.md index 2cfc2323..1fe3a100 100644 --- a/subjects/findnextprime.fr.md +++ b/subjects/findnextprime.fr.md @@ -22,15 +22,15 @@ Voici un éventuel programme pour tester votre fonction : package main import ( - "fmt" - piscine ".." + "fmt" + piscine ".." ) func main() { - arg1 := 5 - arg2 := 4 - fmt.Println(piscine.FindNextPrime(arg1)) - fmt.Println(piscine.FindNextPrime(arg2)) + arg1 := 5 + arg2 := 4 + fmt.Println(piscine.FindNextPrime(arg1)) + fmt.Println(piscine.FindNextPrime(arg2)) } ``` diff --git a/subjects/who-are-you.en.md b/subjects/who-are-you.en.md index eb2ac4b8..ca02813d 100644 --- a/subjects/who-are-you.en.md +++ b/subjects/who-are-you.en.md @@ -8,6 +8,6 @@ The only though that comes to your mind is a tag that says: `subject Id: 70`" Create the file `who-are-you.sh` which will remind you who you are by showing your name only. -- Where to look : https://[[DOMAIN]]/assets/superhero/all.json +- Where to look : https://[[DOMAIN]]/assets/superhero/all.json -- What to use : `curl` and `jq` +- What to use : `curl` and `jq` diff --git a/subjects/who-are-you.fr.md b/subjects/who-are-you.fr.md index fae5775b..c94268f8 100644 --- a/subjects/who-are-you.fr.md +++ b/subjects/who-are-you.fr.md @@ -8,6 +8,6 @@ Tout ce qui vous vient à l'esprit est une étiquette sur laquelle est écrite: Créer le fichier `who-are-you.sh` qui vous rappellera qui vous êtes en affichant votre Nom seulement. -- Où chercher : https://[[DOMAIN]]/assets/superhero/all.json +- Où chercher : https://[[DOMAIN]]/assets/superhero/all.json -- Quoi utiliser : `curl` et `jq` +- Quoi utiliser : `curl` et `jq`