[feat] add test case

This commit is contained in:
theblackcat102 2025-02-18 21:45:51 +08:00
parent f27746be17
commit c612e2abc1
2 changed files with 71 additions and 1 deletions

View file

@ -262,7 +262,7 @@ class CryptarithmDataset(ProceduralDataset):
# case 3 : partial score for the number of correct mapping answer
total_correct, total = 0, 0
for alphabet, number in correct_mapping:
for alphabet, number in correct_mapping.items():
total += 1
if alphabet in predict_mapping:
if predict_mapping[alphabet] == number: