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

Bug in file path when using default values #10

Open
r4ulill0 opened this issue Mar 31, 2024 · 0 comments
Open

Bug in file path when using default values #10

r4ulill0 opened this issue Mar 31, 2024 · 0 comments

Comments

@r4ulill0
Copy link

r4ulill0 commented Mar 31, 2024

Both of these lines are the same

        PestTester::new("tests/pest",".txt", Rule::calendar, HashSet::new());
        PestTester::from_defaults(Rule::calendar, HashSet::new());

but the dot in ".txt" conflicts with this join.

We end up having tests/pest/mytest..test which is not what one should expect from defaults values.

There are 2 possible solutions, remove the dot in the join I mentioned before or remove it from the default file extension here.

If pest-test-gen is working properly with defaults maybe there is a bug there too.

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

No branches or pull requests

1 participant