We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20849dc commit b06325eCopy full SHA for b06325e
exercises/rational-numbers/canonical-data.json
@@ -400,6 +400,28 @@
400
"r": [0, 1]
401
},
402
"expected": 1.0
403
+ },
404
+ {
405
+ "uuid": "da137f1c-fc94-4035-9813-94f5152a1102",
406
+ "description": "Raise a negative real number to a rational number with an even numerator",
407
+ "property": "expreal",
408
+ "input": {
409
+ "x": -1,
410
+ "r": [2, 2]
411
412
+ "expected": 1.0
413
414
415
+ "uuid": "f3734f78-91b2-4e59-905e-8c61dbf34f39",
416
+ "description": "Fails with a negative base if the numerator of the exponent is odd",
417
418
419
420
+ "r": [1, 2]
421
422
+ "expected": {
423
+ "error": "impossible operation"
424
+ }
425
}
426
]
427
0 commit comments