|
9 | 9 | COMMITS_REVERTED_WRONG_ORDER = "You have reverted the commits in the wrong order!" |
10 | 10 | INCORRECT_READINGS = "The files contain the wrong readings!" |
11 | 11 |
|
12 | | -EXPECTED_EAST = ( |
13 | | - "4821\n9304\n1578\n6042\n7189\n2463\n8931\n5710\n4428\n3097\n8652\n1904\n7485\n6379\n5140\n9836\n2057\n4719\n3568\n8243\n" |
14 | | -) |
15 | | -EXPECTED_NORTH = ( |
16 | | - "6841\n2307\n9754\n4169\n5823\n3086\n7592\n8420\n1679\n5034\n2918\n7645\n8501\n4576\n9208\n3461\n5789\n6940\n1235\n8890\n" |
17 | | -) |
18 | | -EXPECTED_SOUTH = ( |
19 | | - "7412\n5068\n8921\n3754\n2809\n6197\n4530\n9674\n1185\n7326\n5401\n8937\n2640\n7083\n5914\n3208\n8745\n4069\n1592\n6831\n" |
20 | | -) |
21 | | -EXPECTED_WEST = ( |
22 | | - "5193\n8042\n6721\n4389\n2075\n9510\n3648\n7281\n5904\n1837\n4416\n9032\n7765\n6208\n3589\n8471\n2940\n1683\n7352\n5129\n" |
23 | | -) |
| 12 | +EXPECTED_EAST = "4821\n9304\n1578\n6042\n7189\n2463\n8931\n5710\n4428\n3097\n8652\n1904\n7485\n6379\n5140\n9836\n2057\n4719\n3568\n8243\n" |
| 13 | +EXPECTED_NORTH = "6841\n2307\n9754\n4169\n5823\n3086\n7592\n8420\n1679\n5034\n2918\n7645\n8501\n4576\n9208\n3461\n5789\n6940\n1235\n8890\n" |
| 14 | +EXPECTED_SOUTH = "7412\n5068\n8921\n3754\n2809\n6197\n4530\n9674\n1185\n7326\n5401\n8937\n2640\n7083\n5914\n3208\n8745\n4069\n1592\n6831\n" |
| 15 | +EXPECTED_WEST = "5193\n8042\n6721\n4389\n2075\n9510\n3648\n7281\n5904\n1837\n4416\n9032\n7765\n6208\n3589\n8471\n2940\n1683\n7352\n5129\n" |
24 | 16 |
|
25 | 17 |
|
26 | 18 | def verify(exercise: GitAutograderExercise) -> GitAutograderOutput: |
@@ -71,10 +63,14 @@ def verify(exercise: GitAutograderExercise) -> GitAutograderOutput: |
71 | 63 | if not (reverted_14th and reverted_13th): |
72 | 64 | raise exercise.wrong_answer([COMMITS_UNREVERTED]) |
73 | 65 |
|
74 | | - if not (east_contents == EXPECTED_EAST |
| 66 | + if not ( |
| 67 | + east_contents == EXPECTED_EAST |
75 | 68 | and north_contents == EXPECTED_NORTH |
76 | 69 | and south_contents == EXPECTED_SOUTH |
77 | | - and west_contents == EXPECTED_WEST): |
| 70 | + and west_contents == EXPECTED_WEST |
| 71 | + ): |
78 | 72 | raise exercise.wrong_answer([INCORRECT_READINGS]) |
79 | 73 |
|
80 | | - return exercise.to_output(["Good work reverting commits!"], GitAutograderStatus.SUCCESSFUL) |
| 74 | + return exercise.to_output( |
| 75 | + ["Good work reverting commits!"], GitAutograderStatus.SUCCESSFUL |
| 76 | + ) |
0 commit comments