From 4ab2f1633f20c0d858c4ba2c130bae74a2f65681 Mon Sep 17 00:00:00 2001 From: Ryan Potts Date: Mon, 22 Oct 2018 14:58:17 -0400 Subject: [PATCH 1/3] simple-cipher: remove mention of invalid input from README https://github.com/exercism/problem-specifications/issues/1298 https://github.com/exercism/problem-specifications/pull/1346 There is a corresponding test version update to 1.2.0 but that is not yet done in this commit... especially since the Rust track is not even on any 1.x.y version. --- exercises/simple-cipher/README.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/exercises/simple-cipher/README.md b/exercises/simple-cipher/README.md index 7c4be8177..33dc6fe7a 100644 --- a/exercises/simple-cipher/README.md +++ b/exercises/simple-cipher/README.md @@ -61,10 +61,7 @@ substitution cipher a little more fault tolerant by providing a source of randomness and ensuring that the key contains only lowercase letters. If someone doesn't submit a key at all, generate a truly random key of -at least 100 characters in length. - -If the key submitted is not composed only of lowercase letters, your -solution should handle the error in a language-appropriate way. +at least 100 alphanumeric characters in length. ## Extensions From 09948af48d021285e35f78844d65ee44a6b4abbf Mon Sep 17 00:00:00 2001 From: "Hilary (hilz) Holz" Date: Thu, 4 Oct 2018 09:14:53 -0700 Subject: [PATCH 2/3] two-fer: update source link https://github.com/exercism/exercism/issues/4361 https://github.com/exercism/problem-specifications/pull/1350 --- exercises/two-fer/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/two-fer/README.md b/exercises/two-fer/README.md index 93a27a1ef..e9cb30b06 100644 --- a/exercises/two-fer/README.md +++ b/exercises/two-fer/README.md @@ -67,7 +67,7 @@ If you want to know more about Exercism, take a look at the [contribution guide] ## Source -[https://en.wikipedia.org/wiki/Two-fer](https://en.wikipedia.org/wiki/Two-fer) +[https://github.com/exercism/problem-specifications/issues/757](https://github.com/exercism/problem-specifications/issues/757) ## Submitting Incomplete Solutions It's possible to submit an incomplete solution so you can see how others have completed the exercise. From ceb7440edda803460ba4f7895df12fff75cc0cee Mon Sep 17 00:00:00 2001 From: Uzi Landsmann Date: Sun, 21 Oct 2018 22:24:46 +0200 Subject: [PATCH 3/3] two-fer: clarify README https://github.com/exercism/problem-specifications/pull/1374 --- exercises/two-fer/README.md | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/exercises/two-fer/README.md b/exercises/two-fer/README.md index e9cb30b06..ff76e3197 100644 --- a/exercises/two-fer/README.md +++ b/exercises/two-fer/README.md @@ -2,15 +2,28 @@ `Two-fer` or `2-fer` is short for two for one. One for you and one for me. +Given a name, return a string with the message: + ```text -"One for X, one for me." +One for X, one for me. ``` -When X is a name or "you". +Where X is the given name. + +However, if the name is missing, return the string: + +```text +One for you, one for me. +``` -If the given name is "Alice", the result should be "One for Alice, one for me." -If no name is given, the result should be "One for you, one for me." +Here are some examples: +|Name | String to return +|:------:|:-----------------: +|Alice | One for Alice, one for me. +|Bob | One for Bob, one for me. +| | One for you, one for me. +|Zaphod | One for Zaphod, one for me. ## Rust Installation