Skip to content

Commit

Permalink
fix: fix 649 test
Browse files Browse the repository at this point in the history
  • Loading branch information
terryyz committed May 8, 2024
1 parent 2fa16da commit 5b0d816
Show file tree
Hide file tree
Showing 5 changed files with 971 additions and 971 deletions.
4 changes: 2 additions & 2 deletions data/clean/f_649_xiaoheng.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ def f_649(n):
class TestCases(unittest.TestCase):
def test_1(self):
avg_distance = f_649(1000)
self.assertTrue(3.2 <= avg_distance <= 3.4, f"Expected average distance to be between 3.2 and 3.4, got {avg_distance}")
self.assertTrue(3.1 <= avg_distance <= 3.5, f"Expected average distance to be between 3.1 and 3.5, got {avg_distance}")

def test_2(self):
avg_distance = f_649(500)
self.assertTrue(3.2 <= avg_distance <= 3.5, f"Expected average distance to be between 3.2 and 3.5, got {avg_distance}")

def test_3(self):
avg_distance = f_649(100)
self.assertTrue(3.0 <= avg_distance <= 3.5, f"Expected average distance to be between 3.0 and 3.5, got {avg_distance}")
self.assertTrue(2.9 <= avg_distance <= 3.6, f"Expected average distance to be between 2.9 and 3.6, got {avg_distance}")

def test_4(self):
avg_distance = f_649(50)
Expand Down
Loading

0 comments on commit 5b0d816

Please sign in to comment.