Skip to content

Commit

Permalink
fix failing unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
mhoualla committed Nov 17, 2023
1 parent b439715 commit 3cb8f86
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,10 @@ public void testValidateQuestionDetails_weightsNotEnabledButOtherWeightNotZero_e

List<String> errors = mcqDetails.validateQuestionDetails();
assertEquals(FeedbackParticipantType.NONE, mcqDetails.getGenerateOptionsFor());
assertEquals(1, errors.size());
assertEquals(FeedbackMcqQuestionDetails.MCQ_ERROR_INVALID_WEIGHT, errors.get(0));
assertEquals(2, errors.size());
assertEquals(FeedbackMcqQuestionDetails.MCQ_ERROR_NOT_ENOUGH_CHOICES
+ FeedbackMcqQuestionDetails.MCQ_MIN_NUM_OF_CHOICES + ".", errors.get(0));
assertEquals(FeedbackMcqQuestionDetails.MCQ_ERROR_INVALID_WEIGHT, errors.get(1));
}

@Test
Expand Down

0 comments on commit 3cb8f86

Please sign in to comment.