mirror of
https://github.com/notohh/rustlings.git
synced 2025-09-22 13:33:14 -04:00
tests1 solution
This commit is contained in:
parent
6187216606
commit
a4f8826301
3 changed files with 34 additions and 9 deletions
rustlings-macros
|
@ -851,9 +851,6 @@ hint = """Let the compiler guide you :)"""
|
|||
name = "tests1"
|
||||
dir = "17_tests"
|
||||
hint = """
|
||||
You don't even need to write any code to test -- you can just test values and
|
||||
run that, even though you wouldn't do that in real life. :)
|
||||
|
||||
`assert!` is a macro that needs an argument. Depending on the value of the
|
||||
argument, `assert!` will do nothing (in which case the test will pass) or
|
||||
`assert!` will panic (in which case the test will fail).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue