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

Convert exercises with assertions to tests #1641

Merged
merged 3 commits into from
Sep 6, 2023

Conversation

mo8it
Copy link
Contributor

@mo8it mo8it commented Aug 26, 2023

Converted all exercises having assertions to test mode.

I am not really sure about all implications of this conversion. Please review it first. You might think that some of them should have both a main function and a test.

Should the function names be changed? main is not a good test function name. I can use other names if you want.

@mo8it mo8it marked this pull request as draft August 26, 2023 23:08
@mo8it mo8it changed the title Move semantics5 test Convert exercises with assertions to tests Aug 26, 2023
@mo8it
Copy link
Contributor Author

mo8it commented Aug 28, 2023

@shadows-withal waiting for your feedback. No pressure! Just to let you know that is not marked as draft because I will edit it before a review. It is just to not be merged directly :)

Copy link
Member

@shadows-withal shadows-withal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep, I agree with this rationale

@shadows-withal shadows-withal marked this pull request as ready for review September 4, 2023 11:39
@shadows-withal
Copy link
Member

that being said, I think it's fine to keep main as a test name

@shadows-withal shadows-withal added the S-waiting-on-author Status: Waiting on issue/PR author label Sep 4, 2023
@mo8it
Copy link
Contributor Author

mo8it commented Sep 5, 2023

Alright, the PR would be ready for merging then after your review, right? :D

@shadows-withal
Copy link
Member

Oh yeah sure! Let me do that.

@shadows-withal shadows-withal merged commit 4d04aad into rust-lang:main Sep 6, 2023
2 checks passed
@mo8it mo8it deleted the move-semantics5-test branch September 6, 2023 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-author Status: Waiting on issue/PR author
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants