1
0
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:
mo8it
2024-06-27 16:29:03 +02:00
parent 6187216606
commit a4f8826301
3 changed files with 34 additions and 9 deletions

View File

@ -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).