From 1cc72f6341cc1955d2d140c87cf0558315025c29 Mon Sep 17 00:00:00 2001 From: Lee Date: Fri, 19 Apr 2019 11:04:19 +0100 Subject: [PATCH 1/3] wdmatch readme for the exams --- subjects/wdmatch.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/subjects/wdmatch.md b/subjects/wdmatch.md index cb24ecc0..abe62560 100644 --- a/subjects/wdmatch.md +++ b/subjects/wdmatch.md @@ -13,13 +13,15 @@ Write a program that takes two strings and checks whether it's possible to write ```console student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test "faya" "fgvvfdxcacpolhyghbreda" +student@ubuntu:~/piscine/test$ ./test "faya" "fgvvfdxcacpolhyghbreda" faya student@ubuntu:~/piscine/test$ ./test "faya" "fgvvfdxcacpolhyghbred" -student@ubuntu:~/piscine/test$ ./test "error" +student@ubuntu:~/piscine/test$ ./test "error" rrerrrfiiljdfxjyuifrrvcoojh -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine/test$ ./test "quarante deux" "qfqfsudf arzgsayns tsregfdgs sjytdekuoixq " +quarante deux +student@ubuntu:~/piscine/test$ ./test student@ubuntu:~/piscine/test$ ``` \ No newline at end of file From b196f8c44b72d554524a30a0adca121149609b36 Mon Sep 17 00:00:00 2001 From: Christopher Fremond Date: Thu, 25 Apr 2019 11:59:49 +0100 Subject: [PATCH 2/3] reformatting --- subjects/{wdmatch.md => wdmatch.en.md} | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) rename subjects/{wdmatch.md => wdmatch.en.md} (52%) diff --git a/subjects/wdmatch.md b/subjects/wdmatch.en.md similarity index 52% rename from subjects/wdmatch.md rename to subjects/wdmatch.en.md index abe62560..b7da8da2 100644 --- a/subjects/wdmatch.md +++ b/subjects/wdmatch.en.md @@ -2,18 +2,17 @@ ## Instructions +Write a program that takes two strings and checks whether it is possible to write the first string with characters from the second string, while respecting the order in which these characters appear in the second string. -Write a program that takes two strings and checks whether it's possible to write the first string with characters from the second string, while respecting the order in which these characters appear in the second string. - -- If it's possible, the program displays the string followed by a `\n`, otherwise it simply displays a `\n`. +- If it is possible, the program displays the string followed by a `\n`, otherwise it simply displays a `\n`. - If the number of arguments is not 2, the program displays `\n`. -## Expected output +Example of output : ```console student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test "faya" "fgvvfdxcacpolhyghbreda" +student@ubuntu:~/piscine/test$ ./test "faya" "fgvvfdxcacpolhyghbreda" faya student@ubuntu:~/piscine/test$ ./test "faya" "fgvvfdxcacpolhyghbred" @@ -21,7 +20,7 @@ student@ubuntu:~/piscine/test$ ./test "error" rrerrrfiiljdfxjyuifrrvcoojh student@ubuntu:~/piscine/test$ ./test "quarante deux" "qfqfsudf arzgsayns tsregfdgs sjytdekuoixq " quarante deux -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine/test$ ./test -student@ubuntu:~/piscine/test$ -``` \ No newline at end of file +student@ubuntu:~/piscine/test$ +``` From a0c9b8aa57a8d8e214129111d12a3cf9ae14e86d Mon Sep 17 00:00:00 2001 From: Christopher Fremond Date: Thu, 25 Apr 2019 12:02:54 +0100 Subject: [PATCH 3/3] correction of title --- subjects/wdmatch.en.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/subjects/wdmatch.en.md b/subjects/wdmatch.en.md index 046efc0e..8eb821c5 100644 --- a/subjects/wdmatch.en.md +++ b/subjects/wdmatch.en.md @@ -1,5 +1,4 @@ - -# switchcase +# wdmatch ## Instructions