beetlsql3-dev
Mlxa0324 3 years ago
parent ec846aafc8
commit 1a64e3e992

@ -67,7 +67,7 @@ class TeacherOpenCourseQuestionLogControllerTest extends BaseTest {
? new String[]{"A", "B", "C", "D"} : new String[]{"A", "B", "C", "D", "E"};
Set<String> randomAnswerSet = RandomUtil
.randomEleSet(Arrays.asList(multipleOptions), RandomUtil.randomInt(2, multipleOptions.length));
// 取前N项
//排序去重 逗号分割
answer.add(join(new TreeSet<>(randomAnswerSet).toArray(), ","));
}
// 判断

Loading…
Cancel
Save