Skip to content

Adding unit test cases for PShapeOBJ addMaterials() and rgbaValue()#1486

Open
kishore4242 wants to merge 1 commit intoprocessing:mainfrom
kishore4242:test/add-pshapeobj-tests
Open

Adding unit test cases for PShapeOBJ addMaterials() and rgbaValue()#1486
kishore4242 wants to merge 1 commit intoprocessing:mainfrom
kishore4242:test/add-pshapeobj-tests

Conversation

@kishore4242
Copy link

Summary

Adds 5 comprehensive unit tests for PShapeOBJ class to improve test coverage
for material management and color conversion functionality.

Tests Added

  • testRgbaValueWhiteColor: Tests color to RGBA conversion
  • testAddMaterials: Tests single material addition
  • testAddMaterialsMultiple: Tests multiple materials with name verification
  • testAddMaterialWithNullValue: Tests edge case with null names
  • testAddMaterialDuplicateNameOverwritesHash: Tests duplicate name behavior

All tests pass locally: ./gradlew test

@kishore4242 kishore4242 marked this pull request as draft March 25, 2026 17:37
@kishore4242 kishore4242 marked this pull request as ready for review March 25, 2026 17:37
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