Skip to content
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

Test/add more test #4

Merged
merged 2 commits into from
Feb 6, 2025
Merged

Test/add more test #4

merged 2 commits into from
Feb 6, 2025

Conversation

rajibola
Copy link
Owner

@rajibola rajibola commented Feb 6, 2025

Description

This PR adds several test cases to enhance the robustness and correctness of our regex-related functionality. The new tests ensure that key features behave as expected and handle edge cases appropriately. Specifically, the following scenarios are now covered:

  • startCaptureGroup: Verifies that capturing groups are created correctly.
  • nonWordBoundary: Ensures that non-word boundary assertions work as intended.
  • unicodeChar with variant 'l': Confirms that Unicode characters with the 'l' variant match accurately.
  • Error Handling:
    • Throws an error when an invalid Unicode letter variant is provided.
    • Throws an error if there is no pattern available to repeat.

These additions improve test coverage, reduce the risk of regressions, and provide better validation for edge cases in regex processing.

Notes

  • If additional edge cases are identified, further tests can be added in future iterations.
  • This PR does not introduce any changes to the production code; it focuses solely on improving test coverage.

@rajibola rajibola merged commit 70bcac7 into dev Feb 6, 2025
4 checks passed
@rajibola rajibola deleted the test/add_more_test branch February 6, 2025 11:58
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