Skip to content

Commit 1f67186

Browse files
Add better error message
1 parent b06325e commit 1f67186

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

exercises/rational-numbers/canonical-data.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,14 +413,14 @@
413413
},
414414
{
415415
"uuid": "f3734f78-91b2-4e59-905e-8c61dbf34f39",
416-
"description": "Fails with a negative base if the numerator of the exponent is odd",
416+
"description": "Fails with a negative real number if the numerator of the rational number is odd",
417417
"property": "expreal",
418418
"input": {
419419
"x": -1,
420420
"r": [1, 2]
421421
},
422422
"expected": {
423-
"error": "impossible operation"
423+
"error": "impossible to raise a negative base to an exponent with an odd numerator"
424424
}
425425
}
426426
]

0 commit comments

Comments
 (0)