Educative

Implementation gets correct answers yet fails all tests, why?

My implementation of the function gets all the correct answers. The test still fails in each case. I was wondering why?

bin2dec_error