Skip to content

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

Merged
Ericson2314 merged 1 commit intoNixOS:masterfrom
xokdvium:prim-match-tests
May 28, 2025
Merged

tests/functional: Add more language tests for builtins.match#13282
Ericson2314 merged 1 commit intoNixOS:masterfrom
xokdvium:prim-match-tests

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
@roberth roberth added backports created Does not require attention and can be filtered away backport 2.28-maintenance Automatically creates a PR against the branch backport 2.29-maintenance Automatically creates a PR against the branch labels Jul 30, 2025
mergify bot added a commit that referenced this pull request Jul 31, 2025
…3282

tests/functional: Add more language tests for `builtins.match` (backport #13282)
mergify bot added a commit that referenced this pull request Jul 31, 2025
…3282

tests/functional: Add more language tests for `builtins.match` (backport #13282)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport 2.28-maintenance Automatically creates a PR against the branch backport 2.29-maintenance Automatically creates a PR against the branch backports created Does not require attention and can be filtered away 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.

5 participants