Spaces:
Sleeping
Sleeping
File size: 306 Bytes
03a907a | 1 2 3 4 5 6 7 8 9 10 11 12 13 | import unittest
from dataset.problem_16.buggy import top_label
class TestTopLabel(unittest.TestCase):
def test_select_highest(self):
scores = {"cat": 0.2, "dog": 0.7, "bird": 0.1}
self.assertEqual(top_label(scores), "dog")
if __name__ == "__main__":
unittest.main()
|