Skip to content

test: add sort012 edge-case assertions - #156

Merged
Huerte merged 2 commits into
Huerte:mainfrom
Aaqibhafeezkhan:issue-135-sort012-tests
Nov 3, 2026
Merged

Huerte merged 2 commits into
Huerte:mainfrom
Aaqibhafeezkhan:issue-135-sort012-tests

Conversation

@Aaqibhafeezkhan

Copy link
Copy Markdown
Contributor

Summary

Adds assertion-based test cases for the existing sort012 solution.

Changes

  • Added five test cases covering mixed input, duplicates, reverse ordering, all-zero input, and empty input.
  • Kept the existing solution implementation unchanged.

Validation

All five assertions pass.

Closes #135

@Aaqibhafeezkhan Aaqibhafeezkhan left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added five assertions for sort012, including an empty-input edge case. The existing implementation remains unchanged, and all assertions pass.

@Huerte
Huerte merged commit 1b98797 into Huerte:main Nov 3, 2026
1 check 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.

Add 3 test cases to a solution (15 min, super easy)

2 participants