Skip to content

Add unit tests for BinaryNode, ListNode, and Pair; fix equals in ListNode#95

Open
anhhqfx08127 wants to merge 1 commit intopedrovgs:masterfrom
anhhqfx08127:test/anhhq_update_unit_test
Open

Add unit tests for BinaryNode, ListNode, and Pair; fix equals in ListNode#95
anhhqfx08127 wants to merge 1 commit intopedrovgs:masterfrom
anhhqfx08127:test/anhhq_update_unit_test

Conversation

@anhhqfx08127
Copy link

Created comprehensive unit tests:

  • BinaryNodeTest
  • ListNodeTest
  • PairTest

During test development, discovered that ListNode.equals did not compare the next field.
Refactored ListNode.equals (and hashCode) to include next comparison for correctness.

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.

1 participant