From c7fb9efec0365dd51f7a81dc689ecefe4b7e5dfb Mon Sep 17 00:00:00 2001 From: Unknown Date: Sun, 5 Mar 2017 01:24:35 +1100 Subject: [PATCH] Adds tests for whitespace and lowercase characters As per issue #613 --- .../run-length-encoding/canonical-data.json | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/exercises/run-length-encoding/canonical-data.json b/exercises/run-length-encoding/canonical-data.json index f09db57e98..0381482776 100644 --- a/exercises/run-length-encoding/canonical-data.json +++ b/exercises/run-length-encoding/canonical-data.json @@ -21,6 +21,16 @@ "description": "single characters mixed with repeated characters", "input": "WWWWWWWWWWWWBWWWWWWWWWWWWBBBWWWWWWWWWWWWWWWWWWWWWWWWB", "expected": "12WB12W3B24WB" + }, + { + "description": "multiple whitespace mixed in string", + "input": " hsqq qww ", + "expected": "2 hs2q q2w2 " + }, + { + "description": "lowercase characters", + "input": "aabbbcccc", + "expected": "2a3b4c" } ] }, @@ -46,6 +56,16 @@ "description": "single characters with repeated characters", "input": "12WB12W3B24WB", "expected": "WWWWWWWWWWWWBWWWWWWWWWWWWBBBWWWWWWWWWWWWWWWWWWWWWWWWB" + }, + { + "description": "multiple whitespace mixed in string", + "input": "2 hs2q q2w2 ", + "expected": " hsqq qww " + }, + { + "description": "lower case string", + "input": "2a3b4c", + "expected": "aabbbcccc" } ] },