From cff422c3384718969e25ffb78bf479a34ba1d65a Mon Sep 17 00:00:00 2001 From: OGordoo Date: Fri, 22 Oct 2021 16:16:51 +0100 Subject: [PATCH] go-reloaded apostrophe not on keyboard --- subjects/go-reloaded/README.md | 4 ++-- subjects/go-reloaded/audit/README.md | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/subjects/go-reloaded/README.md b/subjects/go-reloaded/README.md index 016e72c12..3321270cb 100644 --- a/subjects/go-reloaded/README.md +++ b/subjects/go-reloaded/README.md @@ -28,8 +28,8 @@ The tool you are about to build will receive as arguments the name of a file con - Every instance of the punctuations `.`, `,`, `!`, `?`, `:` and `;` should be close to the previous word and with space apart from the next one. (Ex: "I was sitting over there ,and then BAMM !!" -> "I was sitting over there, and then BAMM!!"). - Except if there are groups of punctuation like: `...` or `!?`. In this case the program should format the text as in the following example: "I was thinking ... You were right" -> "I was thinking... You were right". -- The punctuation marks `‘` and `’` should be placed to the right and left of the word in the middle of them, respectively. (Ex: "I am exactly how they describe me: ‘ awesome ’" -> "I am exactly how they describe me: ‘awesome’") - - If there are more than one word between the `‘’` marks, the program should place the marks next to the corresponding words (Ex: "As Elton John said: ‘ I am the most well-known homosexual in the world ’" -> "As Elton John said: ‘I am the most well-known homosexual in the world’") +- The punctuation mark `'` will always be found with another instance of it and they should be placed to the right and left of the word in the middle of them, without any spaces. (Ex: "I am exactly how they describe me: ' awesome '" -> "I am exactly how they describe me: 'awesome'") + - If there are more than one word between the two `' '` marks, the program should place the marks next to the corresponding words (Ex: "As Elton John said: ' I am the most well-known homosexual in the world '" -> "As Elton John said: 'I am the most well-known homosexual in the world'") - Every instance of `a` should be turned into `an` if the next word begins with a vowel or an `h`. (Ex: "There it was. A amazing rock!" -> "There it was. An amazing rock!"). ### Allowed packages diff --git a/subjects/go-reloaded/audit/README.md b/subjects/go-reloaded/audit/README.md index 6c609da51..8fccb2e50 100644 --- a/subjects/go-reloaded/audit/README.md +++ b/subjects/go-reloaded/audit/README.md @@ -10,10 +10,10 @@ ###### Is the text present in `result.txt` equal to: "I have to pack 5 outfits. Packed 26 just to be sure"? -##### In a file called `sample.txt` place the following text (without the double quotes): "Don't be sad ,because sad backwards is das . And das not good". Now run the student program with the arguments: `sample.txt result.txt`. +##### In a file called `sample.txt` place the following text (without the double quotes): "Don not be sad ,because sad backwards is das . And das not good". Now run the student program with the arguments: `sample.txt result.txt`. -###### Is the text present in `result.txt` equal to: "Don't be sad, because sad backwards is das. And das not good" +###### Is the text present in `result.txt` equal to: "Don not be sad, because sad backwards is das. And das not good" -##### In a file called `sample.txt` place the following text (without the double quotes): "harold wilson (cap, 2) : ‘ I am a optimist ,but a optimist who carries a raincoat . ’". Now run the student program with the arguments: `sample.txt result.txt`. +##### In a file called `sample.txt` place the following text (without the double quotes): "harold wilson (cap, 2) : ' I am a optimist ,but a optimist who carries a raincoat . '". Now run the student program with the arguments: `sample.txt result.txt`. -###### Is the text present in `result.txt` equal to: "Harold Wilson: ‘I am an optimist, but an optimist who carries a raincoat.’" +###### Is the text present in `result.txt` equal to: "Harold Wilson: 'I am an optimist, but an optimist who carries a raincoat.'"