Skip to content
This repository has been archived by the owner on Jan 23, 2021. It is now read-only.

Commit

Permalink
Merge pull request #41 from ardock/pr-fix-is-answer-correct
Browse files Browse the repository at this point in the history
Fix AnswerHelper.isAnswerCorrect method and test
  • Loading branch information
keyboardsurfer committed Nov 3, 2015
2 parents 9cf3405 + 75c19f0 commit 2daeed3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
public class AnswerHelperTest {

private static final int[] OPTIONS = new int[]{0, 1, 2};
private int[] WRONG_OPTIONS = new int[]{2, 3};
private int[] WRONG_OPTIONS = new int[]{2, 1};
private SparseBooleanArray mCorrectAnswer;

@Before
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public static boolean isAnswerCorrect(SparseBooleanArray checkedItems, int[] ans
return false;
}
}
return true;
return checkedItems.size() == answerIds.length;
}

}

0 comments on commit 2daeed3

Please sign in to comment.