Log in

Median - error in Test bloc - JavaScript

  • 22 May

When I run my script on the "Median " challenge in Javascript,
One of the Tests triggers a ReferenceError on the Global.list() invoked function.
As far as I know, there is no Global.list() function in standard JavaScript.

Is there a problem in the JavaScript implementation of the Test Bloc, or the errors comes from my code?
It is the last Test in the Test Bloc and the others passed without any problems.

Thank you for your answers!

`evalmachine.<anonymous>:23

assert.equal(median(list(range(1000000))), 499999.5, "Long.");

^

ReferenceError: list is not defined

at evalmachine.<anonymous>:23:25`

Reply