From 29a570c685f150d6596e6a028595a8628f4857d0 Mon Sep 17 00:00:00 2001 From: Christopher Fremond Date: Tue, 11 Jun 2019 18:16:46 +0100 Subject: [PATCH] review of raid3 subjects --- subjects/raid3.en.md | 22 ++++++++-------------- subjects/raid3.fr.md | 22 ++++++++-------------- 2 files changed, 16 insertions(+), 28 deletions(-) diff --git a/subjects/raid3.en.md b/subjects/raid3.en.md index 7faab3ca7..2ca135cde 100644 --- a/subjects/raid3.en.md +++ b/subjects/raid3.en.md @@ -2,28 +2,22 @@ ### Instructions -Creare a program that takes a string as argument and displays the name of the raid in question, as well as its dimensions. +This raid is based on the `raid1` functions. -- Executable name : `raid3`. +Create a program `raid3` that takes a `string` as an argument and displays the name of the matching `raid1` and its dimensions. -- If the argument isn't a raid should print `Not a Raid function`. +- If the argument is not a `raid1` the program should print `Not a Raid function`. -Example of this output : +- All answers must end with a newline('`\n`'). + +- If there is more than one `raid1` matches, the program must display them all alphabetically ordered and separated by a `|`. + +### Usage ```console student@ubuntu:~/student/test$ go build student@ubuntu:~/student/test$ echo HELLO | ./raid3 Not a Raid function -student@ubuntu:~/student/test$ -``` - -- Whatever the answer, your line must be ended by a `\n`. - -- If there is more than one raid1, you must display them all alphabetically. - -Examples of output : - -```console student@ubuntu:~/student/test$ ./raid1a 4 4 o--o | | diff --git a/subjects/raid3.fr.md b/subjects/raid3.fr.md index 7faab3ca7..af87ba46d 100644 --- a/subjects/raid3.fr.md +++ b/subjects/raid3.fr.md @@ -2,28 +2,22 @@ ### Instructions -Creare a program that takes a string as argument and displays the name of the raid in question, as well as its dimensions. +Ce raid est basé sur les fonctions du `raid1`. -- Executable name : `raid3`. +Créer un programme `raid3` qui prend une `string` comme argument et qui affiche le nom du `raid1` correspondant et ses dimensions. -- If the argument isn't a raid should print `Not a Raid function`. +- Si l'argument n'est pas un des `raid1` le programme affiche `Not a Raid function`. -Example of this output : +- Toutes les réponses doivent se terminer avec un newline('`\n`'). + +- Si il y a plus d'un `raid1` correspondant, le programme doit les afficher tous en ordre alphabétique et séparé par un `|`. + +### Utilisation ```console student@ubuntu:~/student/test$ go build student@ubuntu:~/student/test$ echo HELLO | ./raid3 Not a Raid function -student@ubuntu:~/student/test$ -``` - -- Whatever the answer, your line must be ended by a `\n`. - -- If there is more than one raid1, you must display them all alphabetically. - -Examples of output : - -```console student@ubuntu:~/student/test$ ./raid1a 4 4 o--o | |