mirror of
https://github.com/rust-lang/rustlings.git
synced 2025-06-15 00:04:58 +02:00
tests1 solution
This commit is contained in:
@ -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).
|
||||
|
Reference in New Issue
Block a user