diff --git a/examples/pseudocode-example.html b/examples/pseudocode-example.html index 53691eb..c72ff80 100644 --- a/examples/pseudocode-example.html +++ b/examples/pseudocode-example.html @@ -11,11 +11,7 @@

Simple js-parsons pseudocode example assignment

Construct a function by drag&dropping and reordering lines from the left to the right. - The constructed function should return True if the parameter is True and - return False otherwise.

-

Note: The correct solution is obviously a dumb way to do - it. This exercise is merely trying to give an example of a Parson's - puzzle with js-parsons, not teach you Python :)

+ The constructed function should set the value of variable min to be the smaller of variables a and b.

@@ -43,7 +39,8 @@

Simple js-parsons pseudocode example assignment

'trashId': 'sortableTrash', 'max_wrong_lines': 1, 'vartests': [{initcode: "min = None\na = 0\nb = 2", code: "", message: "Testing with a = 0 ja b = 2", variables: {min: 0}}, - {initcode: "min = None\na = 3\nb = 2\n", code: "", message: "Testing with a = 7 ja b = 4", variables: {min: 4}}], + {initcode: "min = None\na = 7\nb = 4\n", code: "", message: "Testing with a = 7 ja b = 4", + variables: {min: 4}}], 'grader': ParsonsWidget._graders.LanguageTranslationGrader, 'executable_code': "if a < b:\n" + "min = a\n" +