返回 DeepSeek-Reasonix
test_area.py
1 import unittest
2 from geometry import rect_area
3
4
5 class Area(unittest.TestCase):
6 def test_square(self):
7 self.assertEqual(rect_area(3, 3), 9)
8
9 def test_rectangle(self):
10 self.assertEqual(rect_area(4, 5), 21)
11
11 lines PYTHON