Skip to content

Commit

Permalink
Case rule test fix (#705)
Browse files Browse the repository at this point in the history
Co-authored-by: Chase Grajeda <[email protected]>
  • Loading branch information
charlestian23 and Chase-Grajeda authored Jan 26, 2024
1 parent e9fe310 commit cfaabb4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ private void falseAndTest(String fileName,
ArrayList<Board> cases = RULE.getCases(board, cell);

// Make sure that the rule checks out
Assert.assertNotNull(RULE.checkRule(transition));
Assert.assertNull(RULE.checkRule(transition));

// Make sure there are two branches
Assert.assertEquals(2, cases.size());
Expand Down Expand Up @@ -120,7 +120,7 @@ private void trueAndTest(String fileName,
ArrayList<Board> cases = RULE.getCases(board, cell);

// Make sure that the rule checks out
Assert.assertNotNull(RULE.checkRule(transition));
Assert.assertNull(RULE.checkRule(transition));

// There should only be 1 branch
Assert.assertEquals(1, cases.size());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ private void trueOrTest(String fileName,
ArrayList<Board> cases = RULE.getCases(board, cell);

// Make sure that the rule checks out
Assert.assertNotNull(RULE.checkRule(transition));
Assert.assertNull(RULE.checkRule(transition));

// Make sure there are two branches
Assert.assertEquals(2, cases.size());
Expand Down Expand Up @@ -121,7 +121,7 @@ private void falseOrTest(String fileName,
ArrayList<Board> cases = RULE.getCases(board, cell);

// Make sure that the rule checks out
Assert.assertNotNull(RULE.checkRule(transition));
Assert.assertNull(RULE.checkRule(transition));

// There should only be 1 branch
Assert.assertEquals(1, cases.size());
Expand Down

0 comments on commit cfaabb4

Please sign in to comment.