Skip to content

Commit

Permalink
v1.2.4
Browse files Browse the repository at this point in the history
bug fixing
  • Loading branch information
andreas-schwenk committed Aug 19, 2024
1 parent 89a873a commit daf51b7
Show file tree
Hide file tree
Showing 7 changed files with 278 additions and 266 deletions.
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"dans",
"displaystyle",
"dsolve",
"eigenvals",
"ejecuta",
"elif",
"erreurs",
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# v1.2.4

- bug fix: the internal counter for single/multiple choice sections was not reset after retrying a question
- bug fix: context-sensitive boolean variables were not correctly compared.

# v1.2.3

- bug fix: single-choice answers with at least 5 options no longer produce strange progress hints to the student
Expand Down
4 changes: 2 additions & 2 deletions docs/ex1.html

Large diffs are not rendered by default.

527 changes: 264 additions & 263 deletions sell.py

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion web/src/eval.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ export function evalQuestion(question) {
// boolean types primarily occur in single/multiple choice questions.
// boolean values are stringified as "true" and "false".
question.numChecked++;
if (student === expected) question.numCorrect++;
if (student.toLowerCase() === expected.toLowerCase())
question.numCorrect++;
break;
case "string": {
// gap question
Expand Down
2 changes: 2 additions & 0 deletions web/src/math.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
* Both terms must be treated equivalent.
*/

// TODO: boolean

/**
* Given n, the list [0,1,...,n-1] (or a permutation in case "shuffled" is true)
* is returned.
Expand Down
2 changes: 2 additions & 0 deletions web/src/question.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ export class Question {
* Gets the next instance.
*/
reset() {
this.gapIdx = 0;
this.choiceIdx = 0;
this.instanceIdx = (this.instanceIdx + 1) % this.src.instances.length;
}

Expand Down

0 comments on commit daf51b7

Please sign in to comment.