Skip to content

Commit aa68104

Browse files
Review fixes
1 parent 1f67186 commit aa68104

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

exercises/rational-numbers/canonical-data.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -403,24 +403,24 @@
403403
},
404404
{
405405
"uuid": "da137f1c-fc94-4035-9813-94f5152a1102",
406-
"description": "Raise a negative real number to a rational number with an even numerator",
406+
"description": "Raise a negative real number to a rational number",
407407
"property": "expreal",
408408
"input": {
409409
"x": -1,
410410
"r": [2, 2]
411411
},
412-
"expected": 1.0
412+
"expected": -1.0
413413
},
414414
{
415415
"uuid": "f3734f78-91b2-4e59-905e-8c61dbf34f39",
416-
"description": "Fails with a negative real number if the numerator of the rational number is odd",
416+
"description": "Fails with a negative real number if the denominator of the reduced rational number is even",
417417
"property": "expreal",
418418
"input": {
419419
"x": -1,
420-
"r": [1, 2]
420+
"r": [2, 4]
421421
},
422422
"expected": {
423-
"error": "impossible to raise a negative base to an exponent with an odd numerator"
423+
"error": "the result of this operation is a complex number"
424424
}
425425
}
426426
]

0 commit comments

Comments
 (0)