Skip to content

Add Missing Tests for AISzymkiewiczSimpsonCoefficientTest#56

Merged
jordanmontt merged 1 commit intopharo-ai:masterfrom
pankaj-bind:AISzymkiewiczSimpsonCoefficientTest
Sep 23, 2025
Merged

Add Missing Tests for AISzymkiewiczSimpsonCoefficientTest#56
jordanmontt merged 1 commit intopharo-ai:masterfrom
pankaj-bind:AISzymkiewiczSimpsonCoefficientTest

Conversation

@pankaj-bind
Copy link
Contributor

Added tests for:

  • Checks that the Szymkiewicz-Simpson coefficient for empty sets returns 1.0.
  • Checks that the Szymkiewicz-Simpson coefficient for identical sets is 1.0.
  • Checks that the Szymkiewicz-Simpson coefficient for disjoint sets is 0.0.

These tests were added to AISzymkiewiczSimpsonCoefficientTest in src/AI-EditDistances-Tests/AISzymkiewiczSimpsonCoefficientTest.class.st.

Why?

The previous test suite lacked coverage for critical edge cases (empty sets, identical sets, and disjoint sets), which are essential for ensuring the robustness of the AISzymkiewiczSimpsonDistance metric. The new tests verify that the Szymkiewicz-Simpson coefficient correctly handles these scenarios, improving reliability and aligning with the metric’s expected behavior (|X ∩ Y| / min(|X|, |Y|)).

@pankaj-bind
Copy link
Contributor Author

Hey @jordanmontt, please review this PR

@jordanmontt
Copy link
Member

Thanks for the PR

@jordanmontt jordanmontt merged commit 3093d7b into pharo-ai:master Sep 23, 2025
6 checks passed
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

Comments