From 6792c0fdc65b6f15c71c728638f5d9358802483e Mon Sep 17 00:00:00 2001 From: rbasso Date: Sun, 12 Mar 2017 12:16:02 +0900 Subject: [PATCH 1/2] roman-numerals: Make canonical-data.json compliant --- exercises/roman-numerals/canonical-data.json | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/exercises/roman-numerals/canonical-data.json b/exercises/roman-numerals/canonical-data.json index d17d4eb083..1aeaaa1ac8 100644 --- a/exercises/roman-numerals/canonical-data.json +++ b/exercises/roman-numerals/canonical-data.json @@ -1,92 +1,112 @@ { + "exercise": "roman-numerals", + "version": "1.0.0", "cases": [ { "description": "1 is a single I", + "property": "roman", "number" : 1, "expected": "I" }, { "description": "2 is two I's", + "property": "roman", "number" : 2, "expected": "II" }, { "description": "3 is three I's", + "property": "roman", "number" : 3, "expected": "III" }, { "description": "4, being 5 - 1, is IV", + "property": "roman", "number" : 4, "expected": "IV" }, { "description": "5 is a single V", + "property": "roman", "number" : 5, "expected": "V" }, { "description": "6, being 5 + 1, is VI", + "property": "roman", "number" : 6, "expected": "VI" }, { "description": "9, being 10 - 1, is IX", + "property": "roman", "number" : 9, "expected": "IX" }, { "description": "20 is two X's", + "property": "roman", "number" : 27, "expected": "XXVII" }, { "description": "48 is not 50 - 2 but rather 40 + 8", + "property": "roman", "number" : 48, "expected": "XLVIII" }, { "description": "50 is a single L", + "property": "roman", "number" : 59, "expected": "LIX" }, { "description": "90, being 100 - 10, is XC", + "property": "roman", "number" : 93, "expected": "XCIII" }, { "description": "100 is a single C", + "property": "roman", "number" : 141, "expected": "CXLI" }, { "description": "60, being 50 + 10, is LX", + "property": "roman", "number" : 163, "expected": "CLXIII" }, { "description": "400, being 500 - 100, is CD", + "property": "roman", "number" : 402, "expected": "CDII" }, { "description": "500 is a single D", + "property": "roman", "number" : 575, "expected": "DLXXV" }, { "description": "900, being 1000 - 100, is CM", + "property": "roman", "number" : 911, "expected": "CMXI" }, { "description": "1000 is a single M", + "property": "roman", "number" : 1024, "expected": "MXXIV" }, { "description": "3000 is three M's", + "property": "roman", "number" : 3000, "expected": "MMM" } From 070e8d5aef4cd949305d0d8289ab4b0bae4c7295 Mon Sep 17 00:00:00 2001 From: rbasso Date: Sun, 12 Mar 2017 12:16:11 +0900 Subject: [PATCH 2/2] roman-numerals: Fix canonical-data.json formatting --- exercises/roman-numerals/canonical-data.json | 220 +++++++++---------- 1 file changed, 110 insertions(+), 110 deletions(-) diff --git a/exercises/roman-numerals/canonical-data.json b/exercises/roman-numerals/canonical-data.json index 1aeaaa1ac8..b9c172c445 100644 --- a/exercises/roman-numerals/canonical-data.json +++ b/exercises/roman-numerals/canonical-data.json @@ -1,114 +1,114 @@ { "exercise": "roman-numerals", "version": "1.0.0", - "cases": [ - { - "description": "1 is a single I", - "property": "roman", - "number" : 1, - "expected": "I" - }, - { - "description": "2 is two I's", - "property": "roman", - "number" : 2, - "expected": "II" - }, - { - "description": "3 is three I's", - "property": "roman", - "number" : 3, - "expected": "III" - }, - { - "description": "4, being 5 - 1, is IV", - "property": "roman", - "number" : 4, - "expected": "IV" - }, - { - "description": "5 is a single V", - "property": "roman", - "number" : 5, - "expected": "V" - }, - { - "description": "6, being 5 + 1, is VI", - "property": "roman", - "number" : 6, - "expected": "VI" - }, - { - "description": "9, being 10 - 1, is IX", - "property": "roman", - "number" : 9, - "expected": "IX" - }, - { - "description": "20 is two X's", - "property": "roman", - "number" : 27, - "expected": "XXVII" - }, - { - "description": "48 is not 50 - 2 but rather 40 + 8", - "property": "roman", - "number" : 48, - "expected": "XLVIII" - }, - { - "description": "50 is a single L", - "property": "roman", - "number" : 59, - "expected": "LIX" - }, - { - "description": "90, being 100 - 10, is XC", - "property": "roman", - "number" : 93, - "expected": "XCIII" - }, - { - "description": "100 is a single C", - "property": "roman", - "number" : 141, - "expected": "CXLI" - }, - { - "description": "60, being 50 + 10, is LX", - "property": "roman", - "number" : 163, - "expected": "CLXIII" - }, - { - "description": "400, being 500 - 100, is CD", - "property": "roman", - "number" : 402, - "expected": "CDII" - }, - { - "description": "500 is a single D", - "property": "roman", - "number" : 575, - "expected": "DLXXV" - }, - { - "description": "900, being 1000 - 100, is CM", - "property": "roman", - "number" : 911, - "expected": "CMXI" - }, - { - "description": "1000 is a single M", - "property": "roman", - "number" : 1024, - "expected": "MXXIV" - }, - { - "description": "3000 is three M's", - "property": "roman", - "number" : 3000, - "expected": "MMM" - } - ] + "cases": [ + { + "description": "1 is a single I", + "property": "roman", + "number": 1, + "expected": "I" + }, + { + "description": "2 is two I's", + "property": "roman", + "number": 2, + "expected": "II" + }, + { + "description": "3 is three I's", + "property": "roman", + "number": 3, + "expected": "III" + }, + { + "description": "4, being 5 - 1, is IV", + "property": "roman", + "number": 4, + "expected": "IV" + }, + { + "description": "5 is a single V", + "property": "roman", + "number": 5, + "expected": "V" + }, + { + "description": "6, being 5 + 1, is VI", + "property": "roman", + "number": 6, + "expected": "VI" + }, + { + "description": "9, being 10 - 1, is IX", + "property": "roman", + "number": 9, + "expected": "IX" + }, + { + "description": "20 is two X's", + "property": "roman", + "number": 27, + "expected": "XXVII" + }, + { + "description": "48 is not 50 - 2 but rather 40 + 8", + "property": "roman", + "number": 48, + "expected": "XLVIII" + }, + { + "description": "50 is a single L", + "property": "roman", + "number": 59, + "expected": "LIX" + }, + { + "description": "90, being 100 - 10, is XC", + "property": "roman", + "number": 93, + "expected": "XCIII" + }, + { + "description": "100 is a single C", + "property": "roman", + "number": 141, + "expected": "CXLI" + }, + { + "description": "60, being 50 + 10, is LX", + "property": "roman", + "number": 163, + "expected": "CLXIII" + }, + { + "description": "400, being 500 - 100, is CD", + "property": "roman", + "number": 402, + "expected": "CDII" + }, + { + "description": "500 is a single D", + "property": "roman", + "number": 575, + "expected": "DLXXV" + }, + { + "description": "900, being 1000 - 100, is CM", + "property": "roman", + "number": 911, + "expected": "CMXI" + }, + { + "description": "1000 is a single M", + "property": "roman", + "number": 1024, + "expected": "MXXIV" + }, + { + "description": "3000 is three M's", + "property": "roman", + "number": 3000, + "expected": "MMM" + } + ] }