Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
reference cleanups
Browse files Browse the repository at this point in the history
mrbusche committed Sep 22, 2024
1 parent 21e6bc9 commit 8e12497
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
@@ -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);
16 changes: 8 additions & 8 deletions src/test/java/trap/report/TrapHelperTest.java
Original file line number Diff line number Diff line change
@@ -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 8e12497

Please sign in to comment.