+
Skip to content

Conversation

frendsick
Copy link
Contributor

Handle the following special cases for regex patterns for expr and add tests for them:

  • Trailing backslashes
  • $ at the beginning of the regex pattern

@frendsick frendsick force-pushed the fix/expr-regex-special-cases branch from fcb506f to b0390fe Compare May 23, 2025 22:48
@frendsick
Copy link
Contributor Author

What should I do with the test_regex function that is failing the clippy::too_many_lines lint from clippy::pedantic? Should it be allowed to have more lines, as the nature of the current function is that it contains many regex tests, or should it be refactored to smaller test functions for each tested use case? Of course, one use case can have multiple new_ucmd tests, like testing special cases with parsing the $ character.

Copy link

GNU testsuite comparison:

Skipping an intermittent issue tests/misc/stdbuf (passes in this run but fails in the 'main' branch)
Skipping an intermittent issue tests/misc/tee (passes in this run but fails in the 'main' branch)

Copy link

GNU testsuite comparison:

Skipping an intermittent issue tests/misc/stdbuf (passes in this run but fails in the 'main' branch)
Skipping an intermittent issue tests/misc/tee (passes in this run but fails in the 'main' branch)
Skipping an intermittent issue tests/timeout/timeout (passes in this run but fails in the 'main' branch)

@frendsick
Copy link
Contributor Author

Thank you for the review. I will check these when I have the time, possibly tomorrow.

frendsick and others added 2 commits May 24, 2025 21:15
@frendsick frendsick requested a review from cakebaker May 24, 2025 18:20
Copy link

GNU testsuite comparison:

Skipping an intermittent issue tests/tail/inotify-dir-recreate (passes in this run but fails in the 'main' branch)

@cakebaker cakebaker merged commit 3f9514d into uutils:main May 25, 2025
73 checks passed
@cakebaker
Copy link
Contributor

Thanks!

@frendsick frendsick deleted the fix/expr-regex-special-cases branch May 25, 2025 11:42
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.

2 participants

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载