Better asserts in test

This commit is contained in:
Gary Gregory 2023-08-27 08:39:33 -04:00
parent 6df0748849
commit 69c70bc273
1 changed files with 4 additions and 4 deletions

View File

@ -318,10 +318,10 @@ public class StopWatchTest extends AbstractLangTest {
watch.stop();
final long totalTime = watch.getTime();
assertTrue(suspendTime >= 500);
assertTrue(suspendTime < 700);
assertTrue(totalTime >= 1000);
assertTrue(totalTime < 1300);
assertTrue(suspendTime >= 500, "suspendTime = " + suspendTime);
assertTrue(suspendTime < 700, "suspendTime = " + suspendTime);
assertTrue(totalTime >= 1000, "totalTime = " + totalTime);
assertTrue(totalTime < 1300, "totalTime = " + totalTime);
}
@Test