lmj798 opened a new pull request, #1613:
URL: https://github.com/apache/commons-lang/pull/1613

   ## Summary
   Add boundary tests for FluentBitSet.equals() method to verify the 
   correct behavior of equivalence relation properties and edge cases
   that are not covered by existing tests.
   ## Why
   Current tests cover basic equality and null comparisons, but do not 
   explicitly verify:
   - Reflexivity: a BitSet equals itself
   - Symmetry: if A.equals(B) then B.equals(A)
   - Transitivity: if A.equals(B) and B.equals(C) then A.equals(C)
   - Empty BitSet equality and hashCode consistency
   - Clone equality and hashCode preservation
   - Comparison with raw BitSet objects (should return false)
   - Partial overlapping scenarios
   - Same cardinality but different bit positions
   These boundary cases are easy to regress (for example, through 
   off-by-one errors in bit comparison logic), so explicit tests 
   improve behavioral stability.
   ## Verification
   Ran mvn -Dtest=FluentBitSetTest test
   Result: all tests passed


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to