|
@@ -1,4 +1,4 @@
|
|
-import { setTestCases, getTestCases } from "../visualUI/functions";
|
|
|
|
|
|
+import { setTestCases, setExerciseType, getTestCases } from "../visualUI/functions";
|
|
import { generate } from "../visualUI/code_generator";
|
|
import { generate } from "../visualUI/code_generator";
|
|
import { IVProgAssessment } from "../assessment/ivprogAssessment";
|
|
import { IVProgAssessment } from "../assessment/ivprogAssessment";
|
|
import { TestConsole } from "./testConsole";
|
|
import { TestConsole } from "./testConsole";
|
|
@@ -31,6 +31,8 @@ export function prepareActivityToStudentHelper (ilm_cont) {
|
|
return maybe_content.map((content) => {
|
|
return maybe_content.map((content) => {
|
|
const testCases = content.testcases;
|
|
const testCases = content.testcases;
|
|
setTestCases(testCases);
|
|
setTestCases(testCases);
|
|
|
|
+ const exerciseType = content.exercisetype;
|
|
|
|
+ setExerciseType(exerciseType);
|
|
|
|
|
|
let prog_type = null;
|
|
let prog_type = null;
|
|
if (content.settings_programming_type) {
|
|
if (content.settings_programming_type) {
|
|
@@ -97,6 +99,7 @@ export function autoEval (originalData, callback) {
|
|
const con = new TestConsole([]);
|
|
const con = new TestConsole([]);
|
|
const autoAssessment = new IVProgAssessment(
|
|
const autoAssessment = new IVProgAssessment(
|
|
ast_code,
|
|
ast_code,
|
|
|
|
+ original.exerciseType,
|
|
original.testcases,
|
|
original.testcases,
|
|
con
|
|
con
|
|
);
|
|
);
|