Skip to content

Commit f1421da

Browse files
author
Philip Guo
committed
bah
1 parent a373c27 commit f1421da

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

edu-python-questions.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,8 @@ function gradeSubmission() {
332332
var v = res.input_globals[k];
333333
if (isPrimitiveType(v) || v[0] != 'function') {
334334
curCell.find('table.testInputTable').append('<tr class="testInputVarRow"></tr>');
335-
curCell.find('table.testInputTable tr.testInputVarRow:last').append('<td class="testInputVarnameCell">' + k + '</td>');
335+
336+
curCell.find('table.testInputTable tr.testInputVarRow:last').append('<td class="testInputVarnameCell">' + k + ':</td>');
336337

337338
curCell.find('table.testInputTable tr.testInputVarRow:last').append('<td class="testInputValCell"></td>');
338339
renderData(v, curCell.find('table.testInputTable td.testInputValCell:last'), true /* ignoreIDs */);
@@ -350,7 +351,7 @@ function gradeSubmission() {
350351
var curCell = $("#gradeMatrix tr.gradeMatrixRow:last td.testOutputCell:last");
351352
curCell.append('<table><tr class="testOutputVarRow"></tr></table>');
352353

353-
curCell.find('tr.testOutputVarRow:last').append('<td class="testOutputVarnameCell">' + res.output_var_to_compare + '</td>');
354+
curCell.find('tr.testOutputVarRow:last').append('<td class="testOutputVarnameCell">' + res.output_var_to_compare + ':</td>');
354355

355356
curCell.find('tr.testOutputVarRow:last').append('<td class="testOutputValCell"></td>');
356357
renderData(res.test_val, curCell.find('td.testOutputValCell:last'), true /* ignoreIDs */);

edu-python.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,8 @@ table#gradeMatrix td.testOutputCell {
581581

582582
td.testInputVarnameCell,
583583
td.testOutputVarnameCell {
584-
padding-right: 8px;
584+
padding-right: 2px;
585+
text-align: right;
585586
}
586587

587588
td.testInputValCell,

questions/inplace-reverse.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ Debugging: In-place reverse
44
Question:
55

66
The given function reverses a list in-place, but it doesn't work for all
7-
test inputs (try to "Submit answer" to see the failing tests). Change
8-
ONE line to make this function pass all tests.
7+
test inputs. Change only ONE line to make this function pass all tests.
98

109
MaxLineDelta: 1
1110

0 commit comments

Comments
 (0)