Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jakep-allenai committed Oct 23, 2024
1 parent 180dde0 commit ffe470b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_dataprep.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,10 @@ def testListTargetAnchorLength(self):

print(zero_count, full_count)

self.assertTrue(0.05 <= zero_ratio <= 0.15,
f"Expected zero-length ratio around 0.10, got {zero_ratio:.2f}")
self.assertTrue(0.85 <= full_ratio <= 0.95,
f"Expected full-length ratio around 0.90, got {full_ratio:.2f}")
self.assertTrue(0.45 <= zero_ratio <= 0.55,
f"Expected zero-length ratio around 0.5, got {zero_ratio:.2f}")
self.assertTrue(0.45 <= full_ratio <= 0.55,
f"Expected full-length ratio around 0.5, got {full_ratio:.2f}")

# Verify total adds up to 100%
self.assertEqual(zero_count + full_count, num_iterations,
Expand Down

0 comments on commit ffe470b

Please sign in to comment.