Skip to content

Conversation

@ThanosTsiamis
Copy link
Contributor

Add comprehensive multi-case test for normalize_distance.

Added
• test_normalize_distance_many_cases inside TestUtils
• Implements a large table-driven test
• Uses self.subTest() for clearer reporting
• Uses assertAlmostEqual to avoid floating-point precision issues

@codecov
Copy link

codecov bot commented Nov 14, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.51%. Comparing base (64a52bc) to head (878cd07).

Additional details and impacted files
@@           Coverage Diff           @@
##           master      #78   +/-   ##
=======================================
  Coverage   92.51%   92.51%           
=======================================
  Files          40       40           
  Lines        1724     1724           
  Branches      244      244           
=======================================
  Hits         1595     1595           
  Misses         93       93           
  Partials       36       36           
Flag Coverage Δ
unit 92.51% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@@ -1,8 +1,10 @@
import unittest

import pytest
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to import pytest, we are using unittest in this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants