Skip to content

Refactor: Extract node tests into dedicated CTAVLNodeTest class#42

Merged
jordanmontt merged 1 commit intopharo-containers:mainfrom
HossamSaberr:main
Mar 10, 2026
Merged

Refactor: Extract node tests into dedicated CTAVLNodeTest class#42
jordanmontt merged 1 commit intopharo-containers:mainfrom
HossamSaberr:main

Conversation

@HossamSaberr
Copy link
Contributor

Fixes #41

This PR separates the unit tests that specifically test CTAVLNode behavior away from the main CTAVLTreeTest to improve the test architecture and isolation.

Changes:

  1. Created a new dedicated CTAVLNodeTest class.
  2. Moved testCopyLeafNode to the new class.
  3. Refactored and moved testIsLeaf and testParentChildRelationships to the new class as well, since these test node-level properties rather than tree-level balancing or searching.

All tests are green locally! Let me know if this looks good.

@jordanmontt jordanmontt merged commit 62b9ca5 into pharo-containers:main Mar 10, 2026
10 of 15 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.

Create a separated class for testing the CTALVNode

2 participants