From fbb71db917541e18df6d42fdbb8d183249ec3f31 Mon Sep 17 00:00:00 2001 From: Steve Date: Wed, 11 Jan 2017 16:28:14 +0800 Subject: [PATCH] Add 0 length string as a test case for Luhn --- exercises/luhn/canonical-data.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/exercises/luhn/canonical-data.json b/exercises/luhn/canonical-data.json index 87e2c236a5..bc8180fa44 100644 --- a/exercises/luhn/canonical-data.json +++ b/exercises/luhn/canonical-data.json @@ -1,7 +1,12 @@ { "valid": [ { - "description": "single digit strings can not be valid", + "description": "zero length strings are not valid", + "input": "", + "expected": false + }, + { + "description": "single digit strings are not valid", "input": "1", "expected": false },