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

Remove test_ prefix from test functions #1720

Closed
senekor opened this issue Sep 9, 2023 · 1 comment · Fixed by #1727
Closed

Remove test_ prefix from test functions #1720

senekor opened this issue Sep 9, 2023 · 1 comment · Fixed by #1727

Comments

@senekor
Copy link
Contributor

senekor commented Sep 9, 2023

As far as I can tell, this prefix is not idiomatic.
All test functions are annotated with #[test], so it's not necessary for identification.

After a quick search, I couldn't find any considered-to-be-idiomatic sources which actually do this.
For example, the official book doesn't in its chapter on testing.

@senekor
Copy link
Contributor Author

senekor commented Sep 11, 2023

And some tests don't have this prefix right now, so it isn't even consistent at the moment.

senekor added a commit that referenced this issue Sep 11, 2023
senekor added a commit that referenced this issue Sep 11, 2023
senekor added a commit that referenced this issue Sep 11, 2023
senekor added a commit that referenced this issue Sep 12, 2023
senekor added a commit that referenced this issue Sep 12, 2023
senekor added a commit that referenced this issue Sep 12, 2023
senekor added a commit that referenced this issue Sep 13, 2023
senekor added a commit that referenced this issue Sep 14, 2023
senekor added a commit that referenced this issue Sep 14, 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 a pull request may close this issue.

1 participant