79838165

Date: 2025-12-04 16:53:27
Score: 1
Natty:
Report link

so, i found souliton finally:

 // getting the result from ResultFormatter class
        String result = ResultFormatter.format(times, racers);

        // clearing all the spaces and line breaks for reliable comparison
        String cleanExpected = expected.replace("\u00A0", " ").replaceAll("\\r\\n", "\n").trim();
        String cleanResult = result.replace("\u00A0", " ").replaceAll("\\r\\n", "\n").trim();

        assertEquals(cleanExpected, cleanResult);
    }
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: holysh