Show why the test failed

This commit is contained in:
Sebb 2023-10-21 22:42:24 +01:00
parent 9a98475131
commit 721bb4f78a
1 changed files with 4 additions and 4 deletions

View File

@ -287,10 +287,10 @@ public class StopWatchTest extends AbstractLangTest {
final long totalTime = watch.getTime(); final long totalTime = watch.getTime();
assertEquals(splitStr.length(), 12, "Formatted split string not the correct length"); assertEquals(splitStr.length(), 12, "Formatted split string not the correct length");
assertTrue(splitTime >= 500); assertTrue(splitTime >= 500, "expected >= 500, actual: " + splitTime);
assertTrue(splitTime < 700); assertTrue(splitTime < 700, "expected < 500, actual: " + splitTime);
assertTrue(totalTime >= 1500); assertTrue(totalTime >= 1500, "expected >= 1500, actual: " + totalTime);
assertTrue(totalTime < 1900); assertTrue(totalTime < 1900, "expected < 1900, actual: " + totalTime);
} }
@Test @Test