Skip to content

Commit

Permalink
reference cleanups (#430)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbusche authored Sep 22, 2024
1 parent 21e6bc9 commit 3ca8b22
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/main/java/trap/report/TrapHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ private boolean singleRound(String roundType) {
return roundType.equals("clays") || roundType.equals("doubles") || roundType.equals("doublesskeet");
}

private static HashMap determineRoundsToCount() {
var roundCounts = new HashMap<>();
private static Map<String, Integer> determineRoundsToCount() {
var roundCounts = new HashMap<String, Integer>();
roundCounts.put("singles", 4);
roundCounts.put("doubles", 4);
roundCounts.put("handicap", 4);
Expand Down
16 changes: 8 additions & 8 deletions src/test/java/trap/report/TrapHelperTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -737,13 +737,13 @@ void fivestandScoring3LocationsWithHigherScoresInOneLocation() {

@Test
void roundsToCount() {
assertEquals(4, trapHelper.getRoundsToCount("singles"));
assertEquals(4, trapHelper.getRoundsToCount("doubles"));
assertEquals(4, trapHelper.getRoundsToCount("handicap"));

assertEquals(3, trapHelper.getRoundsToCount("skeet"));
assertEquals(3, trapHelper.getRoundsToCount("clays"));
assertEquals(3, trapHelper.getRoundsToCount("fivestand"));
assertEquals(3, trapHelper.getRoundsToCount("doublesskeet"));
assertEquals(4, TrapHelper.getRoundsToCount("singles"));
assertEquals(4, TrapHelper.getRoundsToCount("doubles"));
assertEquals(4, TrapHelper.getRoundsToCount("handicap"));

assertEquals(3, TrapHelper.getRoundsToCount("skeet"));
assertEquals(3, TrapHelper.getRoundsToCount("clays"));
assertEquals(3, TrapHelper.getRoundsToCount("fivestand"));
assertEquals(3, TrapHelper.getRoundsToCount("doublesskeet"));
}
}

0 comments on commit 3ca8b22

Please sign in to comment.