Skip to content

Conversation

@RenjiSann
Copy link
Collaborator

Fixes #6345

@RenjiSann RenjiSann force-pushed the renji/tr-fix-set2-too-big branch from 5ad3321 to 80390e9 Compare July 12, 2024 14:17
@sylvestre sylvestre requested a review from BenWiederhake July 13, 2024 08:19
Copy link
Collaborator

@BenWiederhake BenWiederhake left a comment

Choose a reason for hiding this comment

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

The code change itself is great! It's really straight-forward, thanks to the previous PRs.

I have some requests about the test: Please test the positive case, fix a technically-incorrect comment, and make sure the test checks for the correct failure reason. (Details below.)

@RenjiSann RenjiSann force-pushed the renji/tr-fix-set2-too-big branch from b6955ee to a26bd3b Compare July 15, 2024 08:03
@RenjiSann
Copy link
Collaborator Author

Force push fixed this:

  • Add The complement of ('[:upper:]').
  • Add a test with 230 x.
  • Check the expected error message

Copy link
Collaborator

@BenWiederhake BenWiederhake left a comment

Choose a reason for hiding this comment

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

Code looks good to me, tests both the positive and the negative case, remaining failures are unrelated issues with CI: #6534, #6569, #6570 (twice).

@BenWiederhake BenWiederhake merged commit 128335a into uutils:main Jul 15, 2024
@RenjiSann RenjiSann deleted the renji/tr-fix-set2-too-big branch January 29, 2025 15:21
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.

tr: Raise error when STRING2 argument has unreachable character during complement

2 participants