Ad
  • Custom User Avatar

    Can you wirte your unittest in a way that someone can see what value you expectet and which value you get?

  • Custom User Avatar

    one of your test cases is a bit strange

    An empty array has not the all elements greater than zero - Expected: true, instead got: false

    I think the test for that is:
    Test.expect([].all(isGreaterThanZero), 'An empty array has not all elements greater than zero');

    but you Expected true. in this case i expect false.

  • Custom User Avatar

    Your code is very compact, but this is not clever oder "best practice" is only a very short.
    Good code should be easy to read.