Browse Source

feat(setspace): remove typos and errors in expected output

pull/2069/head
Michele Sessa 1 year ago committed by Michele
parent
commit
3e89350737
  1. 10
      subjects/setspace/README.md

10
subjects/setspace/README.md

@ -4,13 +4,13 @@
Write a function that takes a PascalCase `string` and returns the same `string` with a space between each word.
- The function must return an empty `string` if the input `string` is empty.
- The function must return an empty `string` if the input is an empty `string`.
- The function must return `"Error"` if the input `string` is not a PascalCase `string`.
- The PascalCase begins with a capital letter, and each word begins with a capital letter without a space between them for example: `"HelloWorld`"` is a valid PascalCase `string`.
- The PascalCase begins with a capital letter, and each word begins with a capital letter without a space between them, for example: "HelloWorld" is a valid PascalCase `string`.
- The PascalCase cannot contain any non-alphabetic character, for example: `"Hello World12`" is not a valid PascalCase `string`.
- The PascalCase cannot contain any non-alphabetic character, for example: "Hello World12" is not a valid PascalCase `string`.
### Expected function
@ -46,10 +46,10 @@ And its output:
```console
$ go run . | cat -e
Hello World
Hello World$
Error$
Error$
$
Lorem Ipsum Word$
$
```

Loading…
Cancel
Save