updating tests output for the score

This commit is contained in:
GitBluub
2023-04-02 20:54:14 +09:00
parent 09fd62706b
commit e7b9accb50
9 changed files with 11 additions and 11 deletions

View File

@@ -175,7 +175,7 @@ class Scorometer:
)
if to_play is None:
self.score -= 50
logging.debug("Invalid key.")
logging.info("Invalid key.")
else:
timingScore, timingInformation = self.getTiming(key, to_play)
self.score += (
@@ -208,7 +208,7 @@ class Scorometer:
None,
)
if keys_to_play is None:
logging.warning("Key sent but there is no keys to play")
logging.info("Key sent but there is no keys to play")
self.score -= 50
return
to_play = next(
@@ -216,7 +216,7 @@ class Scorometer:
)
if to_play is None:
self.score -= 50
logging.debug("Invalid key.")
logging.info("Invalid key.")
else:
timingScore, _ = self.getTiming(key, to_play)
self.score += (

View File

@@ -7,4 +7,4 @@
{"id": 8, "timingScore": "perfect", "timingInformation": "perfect"}
{"id": 9, "timingScore": "perfect", "timingInformation": "perfect"}
{"id": 10, "timingScore": "perfect", "timingInformation": "perfect"}
{"overallScore": 850, "score": {}}
{"overallScore": 850, "score": {"missed": 0, "good": 0, "great": 0, "perfect": 0, "maxScore": 1000}}

View File

@@ -6,4 +6,4 @@
{"id": 6, "timingScore": "perfect", "timingInformation": "perfect"}
{"id": 7, "timingScore": "perfect", "timingInformation": "perfect"}
{"id": 8, "timingScore": "perfect", "timingInformation": "perfect"}
{"overallScore": 700, "score": {}}
{"overallScore": 700, "score": {"missed": 0, "good": 0, "great": 0, "perfect": 0, "maxScore": 1000}}

View File

@@ -8,4 +8,4 @@
{"id": 8, "timingScore": "good", "timingInformation": "perfect"}
{"id": 9, "timingScore": "good", "timingInformation": "perfect"}
{"id": 10, "timingScore": "good", "timingInformation": "perfect"}
{"overallScore": 500, "score": {}}
{"overallScore": 500, "score": {"missed": 0, "good": 0, "great": 0, "perfect": 0, "maxScore": 1000}}

View File

@@ -8,4 +8,4 @@
{"id": 8, "timingScore": "good", "timingInformation": "perfect"}
{"id": 9, "timingScore": "good", "timingInformation": "perfect"}
{"id": 10, "timingScore": "good", "timingInformation": "perfect"}
{"overallScore": 500, "score": {}}
{"overallScore": 500, "score": {"missed": 0, "good": 0, "great": 0, "perfect": 0, "maxScore": 1000}}

View File

@@ -1 +1 @@
{"error": "Invalid song id"}
{"error": "Invalid song id, song does not exist"}

View File

@@ -8,4 +8,4 @@
{"id": 8, "timingScore": "perfect", "timingInformation": "late"}
{"id": 9, "timingScore": "perfect", "timingInformation": "late"}
{"id": 10, "timingScore": "perfect", "timingInformation": "late"}
{"overallScore": 1000, "score": {}}
{"overallScore": 1000, "score": {"missed": 0, "good": 0, "great": 0, "perfect": 0, "maxScore": 1000}}

View File

@@ -8,4 +8,4 @@
{"id": 8, "timingScore": "perfect", "timingInformation": "perfect"}
{"id": 9, "timingScore": "perfect", "timingInformation": "perfect"}
{"id": 10, "timingScore": "perfect", "timingInformation": "perfect"}
{"overallScore": 1000, "score": {}}
{"overallScore": 1000, "score": {"missed": 0, "good": 0, "great": 0, "perfect": 0, "maxScore": 1000}}

View File

@@ -6,4 +6,4 @@
{"id": 8, "timingScore": "good", "timingInformation": "late"}
{"id": 9, "timingScore": "perfect", "timingInformation": "perfect"}
{"id": 10, "timingScore": "perfect", "timingInformation": "perfect"}
{"overallScore": 650, "score": {}}
{"overallScore": 650, "score": {"missed": 0, "good": 0, "great": 0, "perfect": 0, "maxScore": 1000}}