|
90 | 90 | "show_message" : "on_failure",
|
91 | 91 | "deduction" : 0.5
|
92 | 92 | },
|
| 93 | + { |
| 94 | + "method" : "diff", |
| 95 | + "actual_file" : "charlie/STDOUT.txt", |
| 96 | + "expected_file" : "charlie_simple.txt", |
| 97 | + "failure_message" : "ERROR: Your code did not match the expected output.", |
| 98 | + "show_message" : "on_failure", |
| 99 | + "deduction" : 0.5 |
| 100 | + }, |
93 | 101 | {
|
94 | 102 | "method" : "diff",
|
95 | 103 | "actual_file" : "charlie/STDOUT.txt",
|
|
180 | 188 | "failure_message" : "ERROR: Your code did not match the expected output.",
|
181 | 189 | "show_message" : "on_failure",
|
182 | 190 | "deduction" : 0.5
|
| 191 | + }, |
| 192 | + //Adding this "sequence_diagram" filecheck will display a sequence diagram |
| 193 | + // of messages passed to the student. |
| 194 | + { |
| 195 | + "sequence_diagram" : true, |
| 196 | + "type" : "FileCheck", |
| 197 | + "title" : "Sequence Diagram Text File", |
| 198 | + "actual_file" : "router/sequence_diagram.txt", |
| 199 | + "points" : 0 |
183 | 200 | }
|
184 | 201 | ]
|
185 | 202 | },
|
|
263 | 280 | "failure_message" : "ERROR: Your code did not match the expected output.",
|
264 | 281 | "show_message" : "on_failure",
|
265 | 282 | "deduction" : 0.5
|
| 283 | + }, |
| 284 | + { |
| 285 | + "sequence_diagram" : true, |
| 286 | + "type" : "FileCheck", |
| 287 | + "title" : "Sequence Diagram Text File", |
| 288 | + "actual_file" : "router/sequence_diagram.txt", |
| 289 | + "points" : 0 |
266 | 290 | }
|
267 | 291 | ]
|
268 | 292 | },
|
|
297 | 321 | // In this example, we want the server to start before the client, so we add a sleep command.
|
298 | 322 | "commands" : ["python3 client.py"]
|
299 | 323 | // By not specifying a outgoing_connections array, we allow ourselves to connect to all nodes on the network
|
| 324 | + }, |
| 325 | + { |
| 326 | + "sequence_diagram" : true, |
| 327 | + "type" : "FileCheck", |
| 328 | + "title" : "Sequence Diagram Text File", |
| 329 | + "actual_file" : "router/sequence_diagram.txt", |
| 330 | + "points" : 0 |
300 | 331 | }
|
301 | 332 | ],
|
302 | 333 | "dispatcher_actions" : [
|
|
351 | 382 | "failure_message" : "ERROR: Your code did not match the expected output.",
|
352 | 383 | "show_message" : "on_failure",
|
353 | 384 | "deduction" : 0.5
|
| 385 | + }, |
| 386 | + { |
| 387 | + "sequence_diagram" : true, |
| 388 | + "type" : "FileCheck", |
| 389 | + "title" : "Sequence Diagram Text File", |
| 390 | + "actual_file" : "router/sequence_diagram.txt", |
| 391 | + "points" : 0 |
354 | 392 | }
|
355 | 393 | ]
|
356 | 394 | }
|
|
0 commit comments