Skip to content

Add size check to breaksLabeled() #471

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 10, 2025
Merged

Add size check to breaksLabeled() #471

merged 2 commits into from
Feb 10, 2025

Conversation

mutokrm
Copy link

@mutokrm mutokrm commented Feb 7, 2025

Fix: #416

Changes

This PR adds size validation in the breaksLabeled() function within both the Axis and Legend classes. If the size of the breaks and labels is mismatched, the function will now throw an IllegalArgumentException with a message.

Testing

New test files have been created under the testing folder to test the methods.
I have confirmed locally that the unit tests pass successfully.

@AndreiKingsley AndreiKingsley changed the base branch from main to dev February 10, 2025 20:17
@AndreiKingsley
Copy link
Collaborator

@walnut07 well done! Thank you!

@AndreiKingsley AndreiKingsley merged commit ce1184d into Kotlin:dev Feb 10, 2025
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.

Add breaks and labels size equality check in breaksLabeled()
2 participants