The example in the description is badly formatted.
Hello,
From the challenge description it is not clear in what data format is the expected output meant to be in
On that basis, I would be very grateful if the challenge author could please advise and/or re-write the challenge so that it is clear to other users
The tests should use assertDeepEquals instead of assertSimilar. And the whole suite should be rewritten to use chai instead of the old test framework.
assertDeepEquals
assertSimilar
chai
I found the nitpicky-ness of the float points tough to manage w/ JS rounding, but I worked it out using a replace. Consider accepting 120.0g instead of 120g, or clarifying in instructions (removed as issue and re-posted as comment!)
Loading collection data...
The example in the description is badly formatted.
Hello,
From the challenge description it is not clear in what data format is the expected output meant to be in
On that basis, I would be very grateful if the challenge author could please advise and/or re-write the challenge so that it is clear to other users
The tests should use
assertDeepEquals
instead ofassertSimilar
. And the whole suite should be rewritten to usechai
instead of the old test framework.I found the nitpicky-ness of the float points tough to manage w/ JS rounding, but I worked it out using a replace. Consider accepting 120.0g instead of 120g, or clarifying in instructions (removed as issue and re-posted as comment!)