Ad
  • Custom User Avatar

    There are no random tests.

  • Custom User Avatar

    Floating point errors in random tests:

    0.01: expected [ 643373.7446649586, 45414.6836419454 ] to deeply equal [ 643373.7446649584, 45414.6836419454 ]
    
  • Custom User Avatar
    assert.deepEqual(calculateFoodForPigs(1.2345e6,5.4321e6,8e6),[1925839.258392584,4563009.6300963005],0.01)
    

    Kata does not make sense physically: the calculated total food for the pigs does not add up to food.

  • Custom User Avatar
    0.01: expected [ Array(2) ] to deeply equal [ Array(2) ]
    

    chai.config.truncateThreshold = 0 is missing.

  • Custom User Avatar
    • 1.3 is not 30% more than 0.7.
    • test.deepEqual does not accept approximation as third parameter.
    • There is no reason to use outdated version of NodeJS.