Updated Assessment Generator
Assessment Generator now generates tests if the practice list is at least greater than 1
This commit is contained in:
parent
258f433d71
commit
68eb646f58
1 changed files with 7 additions and 4 deletions
|
@ -92,11 +92,14 @@ public class AssessmentGenerator {
|
|||
// wordsToTranslate.add(Application.practiseList.get(wordToTranslatePlace));
|
||||
// wordsToTranslate.toArray();
|
||||
// }
|
||||
if( (practiseList.size()>=4) || ((listOfAssessment.isEmpty()) || !(listOfAssessment.getLast() instanceof MatchTheMeaningQuestion))){
|
||||
System.out.println(practiseList.size());
|
||||
if(practiseList.size() > 3) {
|
||||
if (((listOfAssessment.isEmpty()) || !(listOfAssessment.getLast() instanceof MatchTheMeaningQuestion))) {
|
||||
generatedAssessment = generateMatchMeaning(practiseList);
|
||||
}else {
|
||||
} else {
|
||||
numberToGenerate--;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
if(generatedAssessment != null) {
|
||||
|
|
Reference in a new issue