From 695e7f90af0934167127ef103ba779e24eb8f07d Mon Sep 17 00:00:00 2001 From: bskrlj Date: Fri, 16 Aug 2024 20:57:01 +0200 Subject: [PATCH] more tests --- tests/cov_heu_test.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/cov_heu_test.py b/tests/cov_heu_test.py index eeffe84..8f6a465 100644 --- a/tests/cov_heu_test.py +++ b/tests/cov_heu_test.py @@ -42,3 +42,15 @@ def test_all_same_pairs(self): array2 = np.array([2, 2, 2, 2, 2]) result = max_pair_coverage(array1, array2) self.assertEqual(result, 1.0) + + def test_high_collision_potential(self): + array1 = np.array([1] * 1000) + array2 = np.array([2] * 1000) + result = max_pair_coverage(array1, array2) + self.assertEqual(result, 1.0) + + def test_very_large_arrays(self): + array1 = np.random.randint(0, 1000, size=1000000) + array2 = np.random.randint(0, 1000, size=1000000) + result = max_pair_coverage(array1, array2) + self.assertTrue(0 <= result <= 1)