Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed the exercise description to match the task; fixed the test desc…
…ription
  • Loading branch information
vkaravir committed Jun 2, 2014
1 parent c7f321b commit 70d1009
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions examples/pseudocode-example.html
Expand Up @@ -11,11 +11,7 @@
<h2>Simple js-parsons pseudocode example assignment</h2>
<p>Construct a function by drag&amp;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.</p>
<p><strong>Note:</strong> 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 :)</p>
The constructed function should set the value of variable min to be the smaller of variables a and b.</p>
<div id="sortableTrash" class="sortable-code"></div>
<div id="sortable" class="sortable-code">
</div>
Expand Down Expand Up @@ -43,7 +39,8 @@ <h2>Simple js-parsons pseudocode example assignment</h2>
'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" +
Expand Down

0 comments on commit 70d1009

Please sign in to comment.