Skip to content

Commit

Permalink
additional tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Keller Kevin committed Feb 18, 2019
1 parent fb5dba6 commit 0dbf92a
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions src/testing/FarmTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,31 @@ public void testImitationDecisionIncome() {
assertEquals(strat, 2);
}

@Test
public void testImitationDecisionSize1() {
Farm farm = allFarms.get(0);

farm.setSatisfaction(100);
farm.setActivity_Dissimilarity(0);
farm.setIncome_Dissimilarity(10);

List<String> x = farm.decideActivitySet(allFarms, cmd);
assertEquals(x.size(), 14);
}

@Test
public void testImitationDecisionSize2() {
Farm farm = allFarms.get(0);

farm.setSatisfaction(100);
farm.setActivity_Dissimilarity(0);
farm.setIncome_Dissimilarity(10);
farm.setP_ranking_version(1);

List<String> x = farm.decideActivitySet(allFarms, cmd);
assertEquals(x.size(), 5);
}

@Test
public void testRepetionDecision() {
Farm farm = allFarms.get(0);
Expand Down

0 comments on commit 0dbf92a

Please sign in to comment.