Updated Assessment Generator

Assessment Generator now generates tests if the practice list is at least greater than 1
This commit is contained in:
law39 2020-04-30 18:59:01 +01:00
parent 258f433d71
commit 68eb646f58

View file

@ -92,10 +92,13 @@ public class AssessmentGenerator {
// wordsToTranslate.add(Application.practiseList.get(wordToTranslatePlace));
// wordsToTranslate.toArray();
// }
if( (practiseList.size()>=4) || ((listOfAssessment.isEmpty()) || !(listOfAssessment.getLast() instanceof MatchTheMeaningQuestion))){
generatedAssessment = generateMatchMeaning(practiseList);
}else {
numberToGenerate--;
System.out.println(practiseList.size());
if(practiseList.size() > 3) {
if (((listOfAssessment.isEmpty()) || !(listOfAssessment.getLast() instanceof MatchTheMeaningQuestion))) {
generatedAssessment = generateMatchMeaning(practiseList);
} else {
numberToGenerate--;
}
}
break;
}