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

No duplicate keys test, fixes #2643 #2647

Merged
merged 5 commits into from
Sep 1, 2023

Conversation

YeungOnion
Copy link
Contributor

address #2643

did a mistake on the other PR, but this adds the test to ensure there aren't duplicates. The test will show any instances of the first duplicated key found.

There's also a change to ensure that duplicate paths to git config directories aren't added - still allows for two different directories.

made module `tests` and conditionally compiled
checks all pairs in GlobMatcher::mappings via `GlobMatcher::glob`s `Eq`
panics at first match

```rs
SyntaxMapping {
  mappings: Vec<(
    GlobMatcher {
      glob: Glob, ...,
    }, ...,
  }, ...,
}
```
@YeungOnion YeungOnion changed the title No duplicate keys test No duplicate keys test, fixes #2643 Aug 14, 2023
@Enselic Enselic merged commit 9ba3b6e into sharkdp:master Sep 1, 2023
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.

3 participants