Skip to content

tests/functional: Add more language tests for builtins.match #13282

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 1 commit into from
May 28, 2025

Conversation

xokdvium
Copy link
Contributor

@xokdvium xokdvium commented May 27, 2025

Motivation

These tests have been collected from nixpkgs f870c6ccc8951fc48aeb293cf3e98ade6ac42668 usage of builtins.match for x86_64-linux eval system. At most 2 matching and non-matching cases are included for each encountered regex. This should hopefully add more confidence when possibly trying to switch the regex implementation in the future.

Context

To get more real-world usage coverage to hopefully avoid regressions like #7762.

Should this need nixpkgs license attribution?


Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

These tests have been collected from nixpkgs f870c6ccc8951fc48aeb293cf3e98ade6ac42668
usage of builtins.match for x86_64-linux eval system. At most 2 matching and
non-matching cases are included for each encountered regex. This should
hopefully add more confidence when possibly trying to switch the regex implementation
in the future.
@xokdvium xokdvium requested a review from edolstra as a code owner May 27, 2025 22:45
@github-actions github-actions bot added the with-tests Issues related to testing. PRs with tests have some priority label May 27, 2025
@Ericson2314 Ericson2314 merged commit 69603a1 into NixOS:master May 28, 2025
14 checks passed
@xokdvium xokdvium deleted the prim-match-tests branch May 28, 2025 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
with-tests Issues related to testing. PRs with tests have some priority
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants