Skip to content

Commit 459c7a1

Browse files
committed
run-length-encoding: Add simple edge cases
1 parent 377e7cd commit 459c7a1

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

exercises/run-length-encoding/canonical-data.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"#": [
3-
"The tests deliberately check that single characters are encoded without count."
3+
"The tests deliberately check that single characters are encoded without count."
44
],
55
"cases": [
66
{
@@ -29,14 +29,14 @@
2929
"expected": "zzz ZZ zZ"
3030
},
3131
{
32-
"description": "encode unicode",
33-
"input": "⏰⚽⚽⚽⭐⭐⏰",
34-
"expected": "⏰3⚽2⭐⏰"
32+
"description": "nothing to encode",
33+
"input": "XYZ",
34+
"expected": "XYZ"
3535
},
3636
{
37-
"description": "decode unicode",
38-
"input": "⏰3⚽2⭐⏰",
39-
"expected": "⏰⚽⚽⚽⭐⭐⏰"
37+
"description": "nothing to decode",
38+
"input": "",
39+
"expected": ""
4040
}
4141
]
4242
}

0 commit comments

Comments
 (0)