From a51aa60e204a63e054caa645788af62d33c828c4 Mon Sep 17 00:00:00 2001 From: GitBluub Date: Mon, 24 Apr 2023 23:43:13 +0900 Subject: [PATCH 1/3] fix tests --- scorometer/tests/almost_perfect_play/output | 10 ---------- scorometer/tests/early/output | 11 ----------- scorometer/tests/end_miss/output | 9 --------- scorometer/tests/hold_not_enough/output | 11 ----------- scorometer/tests/hold_too_long/output | 11 ----------- scorometer/tests/invalid_song/output | 1 - scorometer/tests/late/output | 11 ----------- scorometer/tests/perfect_play/output | 11 ----------- scorometer/tests/random_miss/output | 9 --------- 9 files changed, 84 deletions(-) diff --git a/scorometer/tests/almost_perfect_play/output b/scorometer/tests/almost_perfect_play/output index 85463e6..e69de29 100644 --- a/scorometer/tests/almost_perfect_play/output +++ b/scorometer/tests/almost_perfect_play/output @@ -1,10 +0,0 @@ -{"id": 2, "timingScore": "perfect", "timingInformation": "perfect"} -{"id": 3, "timingScore": "perfect", "timingInformation": "perfect"} -{"id": 4, "timingScore": "perfect", "timingInformation": "perfect"} -{"id": 5, "timingScore": "perfect", "timingInformation": "perfect"} -{"id": 6, "timingScore": "perfect", "timingInformation": "perfect"} -{"id": 7, "timingScore": "perfect", "timingInformation": "perfect"} -{"id": 8, "timingScore": "perfect", "timingInformation": "perfect"} -{"id": 9, "timingScore": "perfect", "timingInformation": "perfect"} -{"id": 10, "timingScore": "perfect", "timingInformation": "perfect"} -{"overallScore": 850, "score": {"missed": 0, "good": 0, "great": 0, "perfect": 0, "maxScore": 1000}} diff --git a/scorometer/tests/early/output b/scorometer/tests/early/output index 77522b8..e69de29 100644 --- a/scorometer/tests/early/output +++ b/scorometer/tests/early/output @@ -1,11 +0,0 @@ -{"id": 1, "timingScore": "perfect", "timingInformation": "fast"} -{"id": 2, "timingScore": "perfect", "timingInformation": "fast"} -{"id": 3, "timingScore": "perfect", "timingInformation": "fast"} -{"id": 4, "timingScore": "perfect", "timingInformation": "fast"} -{"id": 5, "timingScore": "perfect", "timingInformation": "fast"} -{"id": 6, "timingScore": "perfect", "timingInformation": "fast"} -{"id": 7, "timingScore": "perfect", "timingInformation": "fast"} -{"id": 8, "timingScore": "perfect", "timingInformation": "fast"} -{"id": 9, "timingScore": "perfect", "timingInformation": "fast"} -{"id": 10, "timingScore": "perfect", "timingInformation": "fast"} -{"overallScore": 1000, "score": {"missed": 0, "good": 0, "great": 0, "perfect": 0, "maxScore": 1000}} diff --git a/scorometer/tests/end_miss/output b/scorometer/tests/end_miss/output index 086b2a9..e69de29 100644 --- a/scorometer/tests/end_miss/output +++ b/scorometer/tests/end_miss/output @@ -1,9 +0,0 @@ -{"id": 1, "timingScore": "perfect", "timingInformation": "perfect"} -{"id": 2, "timingScore": "perfect", "timingInformation": "perfect"} -{"id": 3, "timingScore": "perfect", "timingInformation": "perfect"} -{"id": 4, "timingScore": "perfect", "timingInformation": "perfect"} -{"id": 5, "timingScore": "perfect", "timingInformation": "perfect"} -{"id": 6, "timingScore": "perfect", "timingInformation": "perfect"} -{"id": 7, "timingScore": "perfect", "timingInformation": "perfect"} -{"id": 8, "timingScore": "perfect", "timingInformation": "perfect"} -{"overallScore": 700, "score": {"missed": 0, "good": 0, "great": 0, "perfect": 0, "maxScore": 1000}} diff --git a/scorometer/tests/hold_not_enough/output b/scorometer/tests/hold_not_enough/output index 6307a91..e69de29 100644 --- a/scorometer/tests/hold_not_enough/output +++ b/scorometer/tests/hold_not_enough/output @@ -1,11 +0,0 @@ -{"id": 1, "timingScore": "good", "timingInformation": "perfect"} -{"id": 2, "timingScore": "good", "timingInformation": "perfect"} -{"id": 3, "timingScore": "good", "timingInformation": "perfect"} -{"id": 4, "timingScore": "good", "timingInformation": "perfect"} -{"id": 5, "timingScore": "good", "timingInformation": "perfect"} -{"id": 6, "timingScore": "good", "timingInformation": "perfect"} -{"id": 7, "timingScore": "good", "timingInformation": "perfect"} -{"id": 8, "timingScore": "good", "timingInformation": "perfect"} -{"id": 9, "timingScore": "good", "timingInformation": "perfect"} -{"id": 10, "timingScore": "good", "timingInformation": "perfect"} -{"overallScore": 500, "score": {"missed": 0, "good": 0, "great": 0, "perfect": 0, "maxScore": 1000}} diff --git a/scorometer/tests/hold_too_long/output b/scorometer/tests/hold_too_long/output index 6307a91..e69de29 100644 --- a/scorometer/tests/hold_too_long/output +++ b/scorometer/tests/hold_too_long/output @@ -1,11 +0,0 @@ -{"id": 1, "timingScore": "good", "timingInformation": "perfect"} -{"id": 2, "timingScore": "good", "timingInformation": "perfect"} -{"id": 3, "timingScore": "good", "timingInformation": "perfect"} -{"id": 4, "timingScore": "good", "timingInformation": "perfect"} -{"id": 5, "timingScore": "good", "timingInformation": "perfect"} -{"id": 6, "timingScore": "good", "timingInformation": "perfect"} -{"id": 7, "timingScore": "good", "timingInformation": "perfect"} -{"id": 8, "timingScore": "good", "timingInformation": "perfect"} -{"id": 9, "timingScore": "good", "timingInformation": "perfect"} -{"id": 10, "timingScore": "good", "timingInformation": "perfect"} -{"overallScore": 500, "score": {"missed": 0, "good": 0, "great": 0, "perfect": 0, "maxScore": 1000}} diff --git a/scorometer/tests/invalid_song/output b/scorometer/tests/invalid_song/output index 9da53e1..e69de29 100644 --- a/scorometer/tests/invalid_song/output +++ b/scorometer/tests/invalid_song/output @@ -1 +0,0 @@ -{"error": "Invalid song id, song does not exist"} diff --git a/scorometer/tests/late/output b/scorometer/tests/late/output index 28c6d1f..e69de29 100644 --- a/scorometer/tests/late/output +++ b/scorometer/tests/late/output @@ -1,11 +0,0 @@ -{"id": 1, "timingScore": "perfect", "timingInformation": "late"} -{"id": 2, "timingScore": "perfect", "timingInformation": "late"} -{"id": 3, "timingScore": "perfect", "timingInformation": "late"} -{"id": 4, "timingScore": "perfect", "timingInformation": "late"} -{"id": 5, "timingScore": "perfect", "timingInformation": "late"} -{"id": 6, "timingScore": "perfect", "timingInformation": "late"} -{"id": 7, "timingScore": "perfect", "timingInformation": "late"} -{"id": 8, "timingScore": "perfect", "timingInformation": "late"} -{"id": 9, "timingScore": "perfect", "timingInformation": "late"} -{"id": 10, "timingScore": "perfect", "timingInformation": "late"} -{"overallScore": 1000, "score": {"missed": 0, "good": 0, "great": 0, "perfect": 0, "maxScore": 1000}} diff --git a/scorometer/tests/perfect_play/output b/scorometer/tests/perfect_play/output index f35d8ce..e69de29 100644 --- a/scorometer/tests/perfect_play/output +++ b/scorometer/tests/perfect_play/output @@ -1,11 +0,0 @@ -{"id": 1, "timingScore": "perfect", "timingInformation": "perfect"} -{"id": 2, "timingScore": "perfect", "timingInformation": "perfect"} -{"id": 3, "timingScore": "perfect", "timingInformation": "perfect"} -{"id": 4, "timingScore": "perfect", "timingInformation": "perfect"} -{"id": 5, "timingScore": "perfect", "timingInformation": "perfect"} -{"id": 6, "timingScore": "perfect", "timingInformation": "perfect"} -{"id": 7, "timingScore": "perfect", "timingInformation": "perfect"} -{"id": 8, "timingScore": "perfect", "timingInformation": "perfect"} -{"id": 9, "timingScore": "perfect", "timingInformation": "perfect"} -{"id": 10, "timingScore": "perfect", "timingInformation": "perfect"} -{"overallScore": 1000, "score": {"missed": 0, "good": 0, "great": 0, "perfect": 0, "maxScore": 1000}} diff --git a/scorometer/tests/random_miss/output b/scorometer/tests/random_miss/output index 40b5a92..e69de29 100644 --- a/scorometer/tests/random_miss/output +++ b/scorometer/tests/random_miss/output @@ -1,9 +0,0 @@ -{"id": 1, "timingScore": "perfect", "timingInformation": "perfect"} -{"id": 3, "timingScore": "perfect", "timingInformation": "perfect"} -{"id": 4, "timingScore": "perfect", "timingInformation": "perfect"} -{"id": 5, "timingScore": "perfect", "timingInformation": "perfect"} -{"id": 6, "timingScore": "perfect", "timingInformation": "perfect"} -{"id": 8, "timingScore": "good", "timingInformation": "late"} -{"id": 9, "timingScore": "perfect", "timingInformation": "perfect"} -{"id": 10, "timingScore": "perfect", "timingInformation": "perfect"} -{"overallScore": 650, "score": {"missed": 0, "good": 0, "great": 0, "perfect": 0, "maxScore": 1000}} From fa60fca4664a6610fc78db01ad14ac80cd7cb286 Mon Sep 17 00:00:00 2001 From: GitBluub Date: Mon, 24 Apr 2023 23:54:18 +0900 Subject: [PATCH 2/3] cat the diff for the CI --- scorometer/tests/runner.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scorometer/tests/runner.sh b/scorometer/tests/runner.sh index 7844adb..f18957d 100755 --- a/scorometer/tests/runner.sh +++ b/scorometer/tests/runner.sh @@ -13,7 +13,13 @@ function test { cat $1/input | BACK_URL="http://localhost:3000" MUSICS_FOLDER="../../musics/" python3 ../main.py 1> /tmp/scorometer_res 2> /tmp/scorometer_log TESTS_DONE=$((TESTS_DONE + 1)) if ! diff $1/output /tmp/scorometer_res &>/dev/null; then - echo "$t failed, do runner.sh $t for more info" + + echo "=========== CURRENT OUTPUT ===========" + cat /tmp/scorometer_res + echo "======================================" + echo "=========== EXPECTED OUTPUT ==========" + cat $1/output + echo "======================================" TESTS_FAILED=$((TESTS_FAILED + 1)) else TESTS_SUCCESS=$((TESTS_SUCCESS + 1)) From 8628e07be1f551d9dadb69ff7ab78ae924330c85 Mon Sep 17 00:00:00 2001 From: GitBluub Date: Tue, 25 Apr 2023 00:02:49 +0900 Subject: [PATCH 3/3] me dumb --- scorometer/tests/almost_perfect_play/output | 19 +++++++++++++++++++ scorometer/tests/early/output | 21 +++++++++++++++++++++ scorometer/tests/end_miss/output | 17 +++++++++++++++++ scorometer/tests/hold_not_enough/output | 21 +++++++++++++++++++++ scorometer/tests/hold_too_long/output | 21 +++++++++++++++++++++ scorometer/tests/invalid_song/output | 1 + scorometer/tests/late/output | 21 +++++++++++++++++++++ scorometer/tests/perfect_play/output | 21 +++++++++++++++++++++ scorometer/tests/random_miss/output | 17 +++++++++++++++++ 9 files changed, 159 insertions(+) diff --git a/scorometer/tests/almost_perfect_play/output b/scorometer/tests/almost_perfect_play/output index e69de29..cbf6166 100644 --- a/scorometer/tests/almost_perfect_play/output +++ b/scorometer/tests/almost_perfect_play/output @@ -0,0 +1,19 @@ +{"type": "timing", "id": 2, "timing": "perfect", "info": {"max_score": 1000, "score": 0, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 2, "duration": "perfect", "info": {"max_score": 1000, "score": 100, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "timing", "id": 3, "timing": "perfect", "info": {"max_score": 1000, "score": 100, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 3, "duration": "perfect", "info": {"max_score": 1000, "score": 200, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "timing", "id": 4, "timing": "perfect", "info": {"max_score": 1000, "score": 200, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 4, "duration": "perfect", "info": {"max_score": 1000, "score": 300, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "timing", "id": 5, "timing": "perfect", "info": {"max_score": 1000, "score": 300, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 5, "duration": "perfect", "info": {"max_score": 1000, "score": 400, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "timing", "id": 6, "timing": "perfect", "info": {"max_score": 1000, "score": 400, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 6, "duration": "perfect", "info": {"max_score": 1000, "score": 500, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "timing", "id": 7, "timing": "perfect", "info": {"max_score": 1000, "score": 500, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 7, "duration": "perfect", "info": {"max_score": 1000, "score": 600, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "timing", "id": 8, "timing": "perfect", "info": {"max_score": 1000, "score": 600, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 8, "duration": "perfect", "info": {"max_score": 1000, "score": 700, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "timing", "id": 9, "timing": "perfect", "info": {"max_score": 1000, "score": 700, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 9, "duration": "perfect", "info": {"max_score": 1000, "score": 800, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "timing", "id": 10, "timing": "perfect", "info": {"max_score": 1000, "score": 800, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 10, "duration": "perfect", "info": {"max_score": 1000, "score": 900, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"overallScore": 850, "score": {"missed": 1, "good": 0, "great": 0, "perfect": 0, "maxScore": 1000}} diff --git a/scorometer/tests/early/output b/scorometer/tests/early/output index e69de29..2e96442 100644 --- a/scorometer/tests/early/output +++ b/scorometer/tests/early/output @@ -0,0 +1,21 @@ +{"type": "timing", "id": 1, "timing": "great", "info": {"max_score": 1000, "score": 0, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 1, "duration": "perfect", "info": {"max_score": 1000, "score": 100, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "timing", "id": 2, "timing": "great", "info": {"max_score": 1000, "score": 100, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 2, "duration": "perfect", "info": {"max_score": 1000, "score": 200, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "timing", "id": 3, "timing": "great", "info": {"max_score": 1000, "score": 200, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 3, "duration": "perfect", "info": {"max_score": 1000, "score": 300, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "timing", "id": 4, "timing": "great", "info": {"max_score": 1000, "score": 300, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 4, "duration": "perfect", "info": {"max_score": 1000, "score": 400, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "timing", "id": 5, "timing": "great", "info": {"max_score": 1000, "score": 400, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 5, "duration": "perfect", "info": {"max_score": 1000, "score": 500, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "timing", "id": 6, "timing": "great", "info": {"max_score": 1000, "score": 500, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 6, "duration": "perfect", "info": {"max_score": 1000, "score": 600, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "timing", "id": 7, "timing": "great", "info": {"max_score": 1000, "score": 600, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 7, "duration": "perfect", "info": {"max_score": 1000, "score": 700, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "timing", "id": 8, "timing": "great", "info": {"max_score": 1000, "score": 700, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 8, "duration": "perfect", "info": {"max_score": 1000, "score": 800, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "timing", "id": 9, "timing": "great", "info": {"max_score": 1000, "score": 800, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 9, "duration": "perfect", "info": {"max_score": 1000, "score": 900, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "timing", "id": 10, "timing": "great", "info": {"max_score": 1000, "score": 900, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 10, "duration": "perfect", "info": {"max_score": 1000, "score": 1000, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"overallScore": 1000, "score": {"missed": 0, "good": 0, "great": 0, "perfect": 0, "maxScore": 1000}} diff --git a/scorometer/tests/end_miss/output b/scorometer/tests/end_miss/output index e69de29..7422799 100644 --- a/scorometer/tests/end_miss/output +++ b/scorometer/tests/end_miss/output @@ -0,0 +1,17 @@ +{"type": "timing", "id": 1, "timing": "perfect", "info": {"max_score": 1000, "score": 0, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 1, "duration": "perfect", "info": {"max_score": 1000, "score": 100, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "timing", "id": 2, "timing": "perfect", "info": {"max_score": 1000, "score": 100, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 2, "duration": "perfect", "info": {"max_score": 1000, "score": 200, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "timing", "id": 3, "timing": "perfect", "info": {"max_score": 1000, "score": 200, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 3, "duration": "perfect", "info": {"max_score": 1000, "score": 300, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "timing", "id": 4, "timing": "perfect", "info": {"max_score": 1000, "score": 300, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 4, "duration": "perfect", "info": {"max_score": 1000, "score": 400, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "timing", "id": 5, "timing": "perfect", "info": {"max_score": 1000, "score": 400, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 5, "duration": "perfect", "info": {"max_score": 1000, "score": 500, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "timing", "id": 6, "timing": "perfect", "info": {"max_score": 1000, "score": 500, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 6, "duration": "perfect", "info": {"max_score": 1000, "score": 600, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "timing", "id": 7, "timing": "perfect", "info": {"max_score": 1000, "score": 600, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 7, "duration": "perfect", "info": {"max_score": 1000, "score": 700, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "timing", "id": 8, "timing": "perfect", "info": {"max_score": 1000, "score": 700, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 8, "duration": "perfect", "info": {"max_score": 1000, "score": 800, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"overallScore": 700, "score": {"missed": 2, "good": 0, "great": 0, "perfect": 0, "maxScore": 1000}} diff --git a/scorometer/tests/hold_not_enough/output b/scorometer/tests/hold_not_enough/output index e69de29..2388828 100644 --- a/scorometer/tests/hold_not_enough/output +++ b/scorometer/tests/hold_not_enough/output @@ -0,0 +1,21 @@ +{"type": "timing", "id": 1, "timing": "perfect", "info": {"max_score": 1000, "score": 0, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 1, "duration": "too short", "info": {"max_score": 1000, "score": 50, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "timing", "id": 2, "timing": "perfect", "info": {"max_score": 1000, "score": 50, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 2, "duration": "too short", "info": {"max_score": 1000, "score": 100, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "timing", "id": 3, "timing": "perfect", "info": {"max_score": 1000, "score": 100, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 3, "duration": "too short", "info": {"max_score": 1000, "score": 150, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "timing", "id": 4, "timing": "perfect", "info": {"max_score": 1000, "score": 150, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 4, "duration": "too short", "info": {"max_score": 1000, "score": 200, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "timing", "id": 5, "timing": "perfect", "info": {"max_score": 1000, "score": 200, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 5, "duration": "too short", "info": {"max_score": 1000, "score": 250, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "timing", "id": 6, "timing": "perfect", "info": {"max_score": 1000, "score": 250, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 6, "duration": "too short", "info": {"max_score": 1000, "score": 300, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "timing", "id": 7, "timing": "perfect", "info": {"max_score": 1000, "score": 300, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 7, "duration": "too short", "info": {"max_score": 1000, "score": 350, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "timing", "id": 8, "timing": "perfect", "info": {"max_score": 1000, "score": 350, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 8, "duration": "too short", "info": {"max_score": 1000, "score": 400, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "timing", "id": 9, "timing": "perfect", "info": {"max_score": 1000, "score": 400, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 9, "duration": "too short", "info": {"max_score": 1000, "score": 450, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "timing", "id": 10, "timing": "perfect", "info": {"max_score": 1000, "score": 450, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 10, "duration": "too short", "info": {"max_score": 1000, "score": 500, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"overallScore": 500, "score": {"missed": 0, "good": 0, "great": 0, "perfect": 0, "maxScore": 1000}} diff --git a/scorometer/tests/hold_too_long/output b/scorometer/tests/hold_too_long/output index e69de29..fe63dcc 100644 --- a/scorometer/tests/hold_too_long/output +++ b/scorometer/tests/hold_too_long/output @@ -0,0 +1,21 @@ +{"type": "timing", "id": 1, "timing": "perfect", "info": {"max_score": 1000, "score": 0, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 1, "duration": "too long", "info": {"max_score": 1000, "score": 50, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "timing", "id": 2, "timing": "perfect", "info": {"max_score": 1000, "score": 50, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 2, "duration": "too long", "info": {"max_score": 1000, "score": 100, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "timing", "id": 3, "timing": "perfect", "info": {"max_score": 1000, "score": 100, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 3, "duration": "too long", "info": {"max_score": 1000, "score": 150, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "timing", "id": 4, "timing": "perfect", "info": {"max_score": 1000, "score": 150, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 4, "duration": "too long", "info": {"max_score": 1000, "score": 200, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "timing", "id": 5, "timing": "perfect", "info": {"max_score": 1000, "score": 200, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 5, "duration": "too long", "info": {"max_score": 1000, "score": 250, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "timing", "id": 6, "timing": "perfect", "info": {"max_score": 1000, "score": 250, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 6, "duration": "too long", "info": {"max_score": 1000, "score": 300, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "timing", "id": 7, "timing": "perfect", "info": {"max_score": 1000, "score": 300, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 7, "duration": "too long", "info": {"max_score": 1000, "score": 350, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "timing", "id": 8, "timing": "perfect", "info": {"max_score": 1000, "score": 350, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 8, "duration": "too long", "info": {"max_score": 1000, "score": 400, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "timing", "id": 9, "timing": "perfect", "info": {"max_score": 1000, "score": 400, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 9, "duration": "too long", "info": {"max_score": 1000, "score": 450, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "timing", "id": 10, "timing": "perfect", "info": {"max_score": 1000, "score": 450, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 10, "duration": "too long", "info": {"max_score": 1000, "score": 500, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"overallScore": 500, "score": {"missed": 0, "good": 0, "great": 0, "perfect": 0, "maxScore": 1000}} diff --git a/scorometer/tests/invalid_song/output b/scorometer/tests/invalid_song/output index e69de29..9da53e1 100644 --- a/scorometer/tests/invalid_song/output +++ b/scorometer/tests/invalid_song/output @@ -0,0 +1 @@ +{"error": "Invalid song id, song does not exist"} diff --git a/scorometer/tests/late/output b/scorometer/tests/late/output index e69de29..2e96442 100644 --- a/scorometer/tests/late/output +++ b/scorometer/tests/late/output @@ -0,0 +1,21 @@ +{"type": "timing", "id": 1, "timing": "great", "info": {"max_score": 1000, "score": 0, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 1, "duration": "perfect", "info": {"max_score": 1000, "score": 100, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "timing", "id": 2, "timing": "great", "info": {"max_score": 1000, "score": 100, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 2, "duration": "perfect", "info": {"max_score": 1000, "score": 200, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "timing", "id": 3, "timing": "great", "info": {"max_score": 1000, "score": 200, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 3, "duration": "perfect", "info": {"max_score": 1000, "score": 300, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "timing", "id": 4, "timing": "great", "info": {"max_score": 1000, "score": 300, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 4, "duration": "perfect", "info": {"max_score": 1000, "score": 400, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "timing", "id": 5, "timing": "great", "info": {"max_score": 1000, "score": 400, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 5, "duration": "perfect", "info": {"max_score": 1000, "score": 500, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "timing", "id": 6, "timing": "great", "info": {"max_score": 1000, "score": 500, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 6, "duration": "perfect", "info": {"max_score": 1000, "score": 600, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "timing", "id": 7, "timing": "great", "info": {"max_score": 1000, "score": 600, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 7, "duration": "perfect", "info": {"max_score": 1000, "score": 700, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "timing", "id": 8, "timing": "great", "info": {"max_score": 1000, "score": 700, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 8, "duration": "perfect", "info": {"max_score": 1000, "score": 800, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "timing", "id": 9, "timing": "great", "info": {"max_score": 1000, "score": 800, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 9, "duration": "perfect", "info": {"max_score": 1000, "score": 900, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "timing", "id": 10, "timing": "great", "info": {"max_score": 1000, "score": 900, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 10, "duration": "perfect", "info": {"max_score": 1000, "score": 1000, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"overallScore": 1000, "score": {"missed": 0, "good": 0, "great": 0, "perfect": 0, "maxScore": 1000}} diff --git a/scorometer/tests/perfect_play/output b/scorometer/tests/perfect_play/output index e69de29..ae68596 100644 --- a/scorometer/tests/perfect_play/output +++ b/scorometer/tests/perfect_play/output @@ -0,0 +1,21 @@ +{"type": "timing", "id": 1, "timing": "perfect", "info": {"max_score": 1000, "score": 0, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 1, "duration": "perfect", "info": {"max_score": 1000, "score": 100, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "timing", "id": 2, "timing": "perfect", "info": {"max_score": 1000, "score": 100, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 2, "duration": "perfect", "info": {"max_score": 1000, "score": 200, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "timing", "id": 3, "timing": "perfect", "info": {"max_score": 1000, "score": 200, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 3, "duration": "perfect", "info": {"max_score": 1000, "score": 300, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "timing", "id": 4, "timing": "perfect", "info": {"max_score": 1000, "score": 300, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 4, "duration": "perfect", "info": {"max_score": 1000, "score": 400, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "timing", "id": 5, "timing": "perfect", "info": {"max_score": 1000, "score": 400, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 5, "duration": "perfect", "info": {"max_score": 1000, "score": 500, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "timing", "id": 6, "timing": "perfect", "info": {"max_score": 1000, "score": 500, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 6, "duration": "perfect", "info": {"max_score": 1000, "score": 600, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "timing", "id": 7, "timing": "perfect", "info": {"max_score": 1000, "score": 600, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 7, "duration": "perfect", "info": {"max_score": 1000, "score": 700, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "timing", "id": 8, "timing": "perfect", "info": {"max_score": 1000, "score": 700, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 8, "duration": "perfect", "info": {"max_score": 1000, "score": 800, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "timing", "id": 9, "timing": "perfect", "info": {"max_score": 1000, "score": 800, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 9, "duration": "perfect", "info": {"max_score": 1000, "score": 900, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "timing", "id": 10, "timing": "perfect", "info": {"max_score": 1000, "score": 900, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 10, "duration": "perfect", "info": {"max_score": 1000, "score": 1000, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"overallScore": 1000, "score": {"missed": 0, "good": 0, "great": 0, "perfect": 0, "maxScore": 1000}} diff --git a/scorometer/tests/random_miss/output b/scorometer/tests/random_miss/output index e69de29..488f81b 100644 --- a/scorometer/tests/random_miss/output +++ b/scorometer/tests/random_miss/output @@ -0,0 +1,17 @@ +{"type": "timing", "id": 1, "timing": "perfect", "info": {"max_score": 1000, "score": 0, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 1, "duration": "perfect", "info": {"max_score": 1000, "score": 100, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "timing", "id": 3, "timing": "perfect", "info": {"max_score": 1000, "score": 100, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 3, "duration": "perfect", "info": {"max_score": 1000, "score": 200, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "timing", "id": 4, "timing": "perfect", "info": {"max_score": 1000, "score": 200, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 4, "duration": "perfect", "info": {"max_score": 1000, "score": 300, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "timing", "id": 5, "timing": "perfect", "info": {"max_score": 1000, "score": 300, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 5, "duration": "perfect", "info": {"max_score": 1000, "score": 400, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "timing", "id": 6, "timing": "perfect", "info": {"max_score": 1000, "score": 400, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 6, "duration": "perfect", "info": {"max_score": 1000, "score": 500, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "timing", "id": 8, "timing": "great", "info": {"max_score": 1000, "score": 500, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 8, "duration": "too long", "info": {"max_score": 1000, "score": 550, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "timing", "id": 9, "timing": "perfect", "info": {"max_score": 1000, "score": 550, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 9, "duration": "perfect", "info": {"max_score": 1000, "score": 650, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "timing", "id": 10, "timing": "perfect", "info": {"max_score": 1000, "score": 650, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"type": "duration", "id": 10, "duration": "perfect", "info": {"max_score": 1000, "score": 750, "missed": 0, "perfect": 0, "great": 0, "good": 0}} +{"overallScore": 650, "score": {"missed": 2, "good": 0, "great": 0, "perfect": 0, "maxScore": 1000}}