mirror of https://github.com/rust-lang/rustlings
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
5b1e673cec
This commit converts primitive_types4 to a test and asserts that the slice given is equal to the expected slice. The intent of the primitive_types4 exercise appears to be to ensure the user understands inclusive and exclusive bounds as well as slice syntax. `rustlings` commands using `compile` do not verify that a specific println is reached and, in the case of `watch` and `verify` (but not `run`), they do not output the `println`s at all. This fix is semantically similar to #198. It does not take a stance on the correct way to handle this for all exercises; see #127. There are likely other exercises whose intent are masked by this issue. |
5 years ago | |
---|---|---|
.. | ||
error_handling | 5 years ago | |
functions | 5 years ago | |
if | 5 years ago | |
macros | 5 years ago | |
modules | 5 years ago | |
move_semantics | 5 years ago | |
primitive_types | 5 years ago | |
standard_library_types | 5 years ago | |
strings | 5 years ago | |
structs | 5 years ago | |
tests | 5 years ago | |
threads | 5 years ago | |
variables | 5 years ago | |
test1.rs | 5 years ago | |
test2.rs | 5 years ago | |
test3.rs | 5 years ago | |
test4.rs | 6 years ago |