From b904dc5f872ee7745dd36994b4ef0f375a1c830b Mon Sep 17 00:00:00 2001 From: Terri Penn Date: Tue, 5 Sep 2023 12:19:45 -0500 Subject: [PATCH] Typo fixes in Ch6/Exercises reported by A. Hainline --- content/unit-testing/exercises/_index.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/content/unit-testing/exercises/_index.md b/content/unit-testing/exercises/_index.md index 84dc592..cb8f764 100644 --- a/content/unit-testing/exercises/_index.md +++ b/content/unit-testing/exercises/_index.md @@ -7,9 +7,9 @@ originalAuthor: Sally Steuterman # to be set by page creator originalAuthorGitHub: gildedgardenia # to be set by page creator reviewer: # to be set by the page reviewer reviewerGitHub: # to be set by the page reviewer -lastEditor: # update any time edits are made after review -lastEditorGitHub: # update any time edits are made after review -lastMod: # UPDATE ANY TIME CHANGES ARE MADE +lastEditor: Terri Penn # update any time edits are made after review +lastEditorGitHub: tpenn # update any time edits are made after review +lastMod: 2023-09-05T12:05:00 # UPDATE ANY TIME CHANGES ARE MADE --- Work on these exercises in the IntelliJ `car-exercises` @@ -58,7 +58,7 @@ Add a test for the fourth TODO, "gasTankLevel is accurate after attempting to dr @Test public void testGasTankAfterExceedingTankRange() { test_car.drive(501); - assertEquals(test_car.getGasTankLevel(), 0, .001); + assertEquals(0, test_car.getGasTankLevel(), .001); } ``` @@ -78,7 +78,7 @@ to our car that exceeds the gas tank size. //TODO: can't have more gas than tank size, expect an exception @Test() public void testGasOverfillException() { - assertthrows(IllegalArgumentException.class, () -> ); + assertThrows(IllegalArgumentException.class, () -> ); } ```