Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typo fixes in Ch6/Exercises reported by A. Hainline #42

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions content/unit-testing/exercises/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down Expand Up @@ -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);
}
```

Expand All @@ -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, () -> );
}
```

Expand Down