Ad
  • Custom User Avatar

    Hello, looks like a misprint in kata description:
    ["TEAM C", "6", "5"]
    instead of
    ["TEAM C", "6", "4"], or
    TEAM C won two matches (1x0 and 3x2). Receives 6 points and a total of 4 scored goals.
    instead of
    TEAM C won two matches (1x0 and 3x2). Receives 6 points and a total of 5 scored goals.

  • Custom User Avatar
    given [PARIS DEVIL GERMAN 2 x 2 CEILESTER CITY, CEILESTER CITY 4 x 4 PARIS DEVIL GERMAN]
    expected [ [ 'TEAM NAME', 'PTS.', 'GLS.' ],
      [ 'CEILESTER CITY', '2', '6' ],
      [ 'PARIS DEVIL GERMAN', '2', '6' ] ] 
    to deeply equal [ [ 'TEAM NAME', 'PTS.', 'GLS.' ],
      [ 'PARIS DEVIL GERMAN', '2', '6' ],
      [ 'CEILESTER CITY', '2', '6' ] ]
    

    It's not mentioned how this should be handled. Sort by name or appearance in initial list?

  • Default User Avatar

    Object properties are unordered and can appear in different orders when equals objects are stringified.
    Objects should be compared with assertDeepEquals.

  • Custom User Avatar

    Random tests still don't compare values with Test.assertApproxEquals. Comparing floats approximately means they're compared with a margin, and without any rounding.

  • Custom User Avatar

    Initial code is missing.

  • Custom User Avatar

    ( Sigh )

    Needs random tests.

    Did you read the tutorial?