From ac1fe7d7abba32ef0c83ca1a22092bab9de5f171 Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Thu, 13 Sep 2018 16:29:29 -0400 Subject: SML example import --- examples/sml/test_handins/README | 5 +++++ examples/sml/test_handins/bad.exp | 10 ++++++++++ examples/sml/test_handins/bad.tar | Bin 0 -> 10240 bytes examples/sml/test_handins/perfect.exp | 10 ++++++++++ examples/sml/test_handins/perfect.tar | Bin 0 -> 10240 bytes 5 files changed, 25 insertions(+) create mode 100644 examples/sml/test_handins/README create mode 100644 examples/sml/test_handins/bad.exp create mode 100644 examples/sml/test_handins/bad.tar create mode 100644 examples/sml/test_handins/perfect.exp create mode 100644 examples/sml/test_handins/perfect.tar (limited to 'examples/sml/test_handins') diff --git a/examples/sml/test_handins/README b/examples/sml/test_handins/README new file mode 100644 index 0000000..b43561b --- /dev/null +++ b/examples/sml/test_handins/README @@ -0,0 +1,5 @@ +To test your checks.sml, place sample submissions in this directory +according to the following format: + + somename.tar : the submission you want to test + somename.exp : the expected json score diff --git a/examples/sml/test_handins/bad.exp b/examples/sml/test_handins/bad.exp new file mode 100644 index 0000000..7002bce --- /dev/null +++ b/examples/sml/test_handins/bad.exp @@ -0,0 +1,10 @@ + Expected 3333 but got 12072 + Score: 0.0. + +Checking bonuses... +Failed to add bonus 10 + ~10 +in under 2 seconds. Skipping. + + + +{"scores": {"hard": 0.0, "easy": 0.0}, "scoreboard": [0]} diff --git a/examples/sml/test_handins/bad.tar b/examples/sml/test_handins/bad.tar new file mode 100644 index 0000000..46e0343 Binary files /dev/null and b/examples/sml/test_handins/bad.tar differ diff --git a/examples/sml/test_handins/perfect.exp b/examples/sml/test_handins/perfect.exp new file mode 100644 index 0000000..fbc13ae --- /dev/null +++ b/examples/sml/test_handins/perfect.exp @@ -0,0 +1,10 @@ +Passed: 1212 + 2121 + Score: 8.0. + +Checking bonuses... +Got bonus 10 + ~10 +Well done! + + + +{"scores": {"hard": 8.0, "easy": 4.0}, "scoreboard": [1]} diff --git a/examples/sml/test_handins/perfect.tar b/examples/sml/test_handins/perfect.tar new file mode 100644 index 0000000..2fa75d0 Binary files /dev/null and b/examples/sml/test_handins/perfect.tar differ -- cgit v1.2.3