This is a very minor issue but I thought I’d report anyway.
On the Complex Numbers exercise, the spec of the functions uses complex | float
on many of the core functions to be implemented (add, mul, and div, for example).
However, tests pass integer parameters to the program, so following the spec I implemented the function using a is_float
guard, which promptly failed the tests, but replacing those with a is_number
guard the tests passed.
I suggest to change the spec to complex | number
on the problem.