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

feat: add tests4.rs exercise #1463

Merged
merged 3 commits into from
Apr 5, 2023

Conversation

poneciak57
Copy link
Contributor

@poneciak57 poneciak57 commented Apr 5, 2023

Added task which teach how to test function that panics
issue #1409

@poneciak57 poneciak57 changed the title feature: task that shows how to deal with panic while testing feat: task that shows how to deal with panic while testing Apr 5, 2023
@poneciak57 poneciak57 changed the title feat: task that shows how to deal with panic while testing feat: add tests4.rs exercise Apr 5, 2023
info.toml Outdated Show resolved Hide resolved
info.toml Outdated Show resolved Hide resolved
exercises/tests/tests4.rs Outdated Show resolved Hide resolved
exercises/tests/tests4.rs Outdated Show resolved Hide resolved
exercises/tests/tests4.rs Show resolved Hide resolved
exercises/tests/tests4.rs Show resolved Hide resolved
- fixed grammar in hint and added more specific link
- added comments in test functions
- changed introduction paragraph
also fixed small logical issue in `Rectangle::new()` where u could create rectangle with width or height equals 0
@shadows-withal shadows-withal merged commit 9a9b487 into rust-lang:main Apr 5, 2023
1 check passed
@shadows-withal
Copy link
Member

@all-contributors please add @poneciak57 for content

@allcontributors
Copy link
Contributor

@shadows-withal

I've put up a pull request to add @poneciak57! 🎉

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.

None yet

2 participants