Skip to content
Merged
Show file tree
Hide file tree
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
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,16 @@ This is the GitHub project for the 2023 State Farm Coding Competition Round 1 an

## Change Log:

- October 14, 2023 - Publishing problem sets
- [Problem Statement PDF](./round%201/ROUND_ONE_PROMPT.pdf)
- October 14, 2023
- 7:00pm CDT - Publishing problem sets, [Problem Statement PDF](./round%201/ROUND_ONE_PROMPT.pdf)
- 7:35pm CDT
- [Issues Creating Branch in GitHub](https://github.com/StateFarmInsCodingCompetition/2023-StateFarm-CodingCompetition/issues/5)
- [Python project was missing data/ folder](https://github.com/StateFarmInsCodingCompetition/2023-StateFarm-CodingCompetition/issues/7)
- 8:22 CDT
- [Fixed Final Node Test Typo](https://github.com/StateFarmInsCodingCompetition/2023-StateFarm-CodingCompetition/issues/3)
- [Fixed int to Integer Type Fix for Java Test 8 + Stub Method](https://github.com/StateFarmInsCodingCompetition/2023-StateFarm-CodingCompetition/issues/4)
- 8:37 CDT
- [Cleaning up "round 1" folder ](https://github.com/StateFarmInsCodingCompetition/2023-StateFarm-CodingCompetition/issues/6)
- October 6, 2023 - Publishing initial repo, including help guides and skeleton projects
- This is to just get you started -- making sure your computer is setup, that you are able to build and run the project (including unit tests), and getting familiar with the structure.
- The Problem Statement and relevant JSON files will be published at the start of Round 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,9 @@ public String getMostSpokenAgentLanguageByState(String string) {
* @return number of claims that are not closed and have minimum severity rating
* or greater
* -1 if severity rating out of bounds
* None if agent does not exist, or agent has no claims (open or not)
* null if agent does not exist, or agent has no claims (open or not)
*/
public int getNumOfOpenClaimsForAgentAndSeverity(int agentId, int minSeverityRating) {
public Integer getNumOfOpenClaimsForAgentAndSeverity(int agentId, int minSeverityRating) {
return -2;
}

Expand Down Expand Up @@ -233,4 +233,4 @@ public String[] getTopThreeMonthsWithHighestNumOfClaimsDesc() {
}

// endregion
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ public void test7_getMostSpokenAgentLanguageByState() {

@Test
public void test8_getNumOfOpenClaimsForAgentAndSeverity() {
assertEquals(-1, controller.getNumOfOpenClaimsForAgentAndSeverity(0, 0));
assertEquals(-1, controller.getNumOfOpenClaimsForAgentAndSeverity(25, 11));
assertEquals(Integer.valueOf(-1), controller.getNumOfOpenClaimsForAgentAndSeverity(0, 0));
assertEquals(Integer.valueOf(-1), controller.getNumOfOpenClaimsForAgentAndSeverity(25, 11));
assertEquals(null, controller.getNumOfOpenClaimsForAgentAndSeverity(65, 3));
assertEquals(16, controller.getNumOfOpenClaimsForAgentAndSeverity(24, 1));
assertEquals(3, controller.getNumOfOpenClaimsForAgentAndSeverity(87, 6));
assertEquals(2, controller.getNumOfOpenClaimsForAgentAndSeverity(85, 6));
assertEquals(Integer.valueOf(16), controller.getNumOfOpenClaimsForAgentAndSeverity(24, 1));
assertEquals(Integer.valueOf(3), controller.getNumOfOpenClaimsForAgentAndSeverity(87, 6));
assertEquals(Integer.valueOf(2), controller.getNumOfOpenClaimsForAgentAndSeverity(85, 6));
}
}
8 changes: 4 additions & 4 deletions nodejs/application.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ describe("Test Set Four", () => {
const topThreeMonths =
controller.getTopThreeMonthsWithHighestNumOfClaimsDesc();
expect(topThreeMonths.length).toBe(3);
expect(top_three_months[0]).toBe("April 2023");
expect(top_three_months[1]).toBe("November 2022");
expect(top_three_months[2]).toBe("February 2023");
expect(topThreeMonths[0]).toBe("April 2023");
expect(topThreeMonths[1]).toBe("November 2022");
expect(topThreeMonths[2]).toBe("February 2023");
});
});
});
Loading