problem-specifications/exercises/proverb/canonical-data.json in trackler-2.2.1.100 vs problem-specifications/exercises/proverb/canonical-data.json in trackler-2.2.1.101
- old
+ new
@@ -1,68 +1,78 @@
{
"exercise": "proverb",
- "version": "1.0.0",
+ "version": "1.1.0",
"comments": [
"JSON doesn't allow for multi-line strings, so all expected outputs are presented ",
"here as arrays of strings. It's up to the test generator to join the ",
"lines together with line breaks. "
],
"cases": [
{
"description": "zero pieces",
"property": "recite",
- "input": [],
+ "input": {
+ "strings": []
+ },
"expected": []
},
{
"description": "one piece",
"property": "recite",
- "input": [
+ "input": {
+ "strings": [
"nail"
- ],
+ ]
+ },
"expected": [
"And all for the want of a nail."
]
},
{
"description": "two pieces",
"property": "recite",
- "input": [
+ "input": {
+ "strings": [
"nail",
"shoe"
- ],
+ ]
+ },
"expected": [
"For want of a nail the shoe was lost.",
"And all for the want of a nail."
]
},
{
"description": "three pieces",
"property": "recite",
- "input": [
+ "input": {
+ "strings": [
"nail",
"shoe",
"horse"
- ],
+ ]
+ },
"expected": [
"For want of a nail the shoe was lost.",
"For want of a shoe the horse was lost.",
"And all for the want of a nail."
]
},
{
"description": "full proverb",
"property": "recite",
- "input": [
+ "input": {
+ "strings": [
"nail",
"shoe",
"horse",
"rider",
"message",
"battle",
"kingdom"
- ],
+ ]
+ },
"expected": [
"For want of a nail the shoe was lost.",
"For want of a shoe the horse was lost.",
"For want of a horse the rider was lost.",
"For want of a rider the message was lost.",
@@ -72,15 +82,17 @@
]
},
{
"description": "four pieces modernized",
"property": "recite",
- "input": [
+ "input": {
+ "strings": [
"pin",
"gun",
"soldier",
"battle"
- ],
+ ]
+ },
"expected": [
"For want of a pin the gun was lost.",
"For want of a gun the soldier was lost.",
"For want of a soldier the battle was lost.",
"And all for the want of a pin."