Browse Source

go-reloaded apostrophe not on keyboard

content-update
OGordoo 3 years ago
parent
commit
cff422c338
  1. 4
      subjects/go-reloaded/README.md
  2. 8
      subjects/go-reloaded/audit/README.md

4
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

8
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.'"

Loading…
Cancel
Save