mirror of
https://github.com/notohh/rustlings.git
synced 2024-11-29 08:44:16 -05:00
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.
223 lines
3.6 KiB
TOML
223 lines
3.6 KiB
TOML
# VARIABLES
|
|
|
|
[[exercises]]
|
|
path = "exercises/variables/variables1.rs"
|
|
mode = "compile"
|
|
|
|
[[exercises]]
|
|
path = "exercises/variables/variables2.rs"
|
|
mode = "compile"
|
|
|
|
[[exercises]]
|
|
path = "exercises/variables/variables3.rs"
|
|
mode = "compile"
|
|
|
|
[[exercises]]
|
|
path = "exercises/variables/variables4.rs"
|
|
mode = "compile"
|
|
|
|
# IF
|
|
|
|
[[exercises]]
|
|
path = "exercises/if/if1.rs"
|
|
mode = "test"
|
|
|
|
# FUNCTIONS
|
|
|
|
[[exercises]]
|
|
path = "exercises/functions/functions1.rs"
|
|
mode = "compile"
|
|
|
|
[[exercises]]
|
|
path = "exercises/functions/functions2.rs"
|
|
mode = "compile"
|
|
|
|
[[exercises]]
|
|
path = "exercises/functions/functions3.rs"
|
|
mode = "compile"
|
|
|
|
[[exercises]]
|
|
path = "exercises/functions/functions4.rs"
|
|
mode = "compile"
|
|
|
|
[[exercises]]
|
|
path = "exercises/functions/functions5.rs"
|
|
mode = "compile"
|
|
|
|
# TEST 1
|
|
|
|
[[exercises]]
|
|
path = "exercises/test1.rs"
|
|
mode = "test"
|
|
|
|
# PRIMITIVE TYPES
|
|
|
|
[[exercises]]
|
|
path = "exercises/primitive_types/primitive_types1.rs"
|
|
mode = "compile"
|
|
|
|
[[exercises]]
|
|
path = "exercises/primitive_types/primitive_types2.rs"
|
|
mode = "compile"
|
|
|
|
[[exercises]]
|
|
path = "exercises/primitive_types/primitive_types3.rs"
|
|
mode = "compile"
|
|
|
|
[[exercises]]
|
|
path = "exercises/primitive_types/primitive_types4.rs"
|
|
mode = "test"
|
|
|
|
[[exercises]]
|
|
path = "exercises/primitive_types/primitive_types5.rs"
|
|
mode = "compile"
|
|
|
|
[[exercises]]
|
|
path = "exercises/primitive_types/primitive_types6.rs"
|
|
mode = "compile"
|
|
|
|
# STRUCTS
|
|
|
|
[[exercises]]
|
|
path = "exercises/structs/structs1.rs"
|
|
mode = "test"
|
|
|
|
# TESTS
|
|
|
|
[[exercises]]
|
|
path = "exercises/tests/tests1.rs"
|
|
mode = "test"
|
|
|
|
[[exercises]]
|
|
path = "exercises/tests/tests2.rs"
|
|
mode = "test"
|
|
|
|
[[exercises]]
|
|
path = "exercises/tests/tests3.rs"
|
|
mode = "test"
|
|
|
|
# TEST 2
|
|
|
|
[[exercises]]
|
|
path = "exercises/test2.rs"
|
|
mode = "test"
|
|
|
|
# STRINGS
|
|
|
|
[[exercises]]
|
|
path = "exercises/strings/strings1.rs"
|
|
mode = "compile"
|
|
|
|
[[exercises]]
|
|
path = "exercises/strings/strings2.rs"
|
|
mode = "compile"
|
|
|
|
# TEST 3
|
|
|
|
[[exercises]]
|
|
path = "exercises/test3.rs"
|
|
mode = "compile"
|
|
|
|
# MODULES
|
|
|
|
[[exercises]]
|
|
path = "exercises/modules/modules1.rs"
|
|
mode = "compile"
|
|
|
|
[[exercises]]
|
|
path = "exercises/modules/modules2.rs"
|
|
mode = "compile"
|
|
|
|
# MACROS
|
|
|
|
[[exercises]]
|
|
path = "exercises/macros/macros1.rs"
|
|
mode = "compile"
|
|
|
|
[[exercises]]
|
|
path = "exercises/macros/macros2.rs"
|
|
mode = "compile"
|
|
|
|
[[exercises]]
|
|
path = "exercises/macros/macros3.rs"
|
|
mode = "compile"
|
|
|
|
[[exercises]]
|
|
path = "exercises/macros/macros4.rs"
|
|
mode = "compile"
|
|
|
|
# TEST 4
|
|
|
|
[[exercises]]
|
|
path = "exercises/test4.rs"
|
|
mode = "compile"
|
|
|
|
# MOVE SEMANTICS
|
|
|
|
[[exercises]]
|
|
path = "exercises/move_semantics/move_semantics1.rs"
|
|
mode = "compile"
|
|
|
|
[[exercises]]
|
|
path = "exercises/move_semantics/move_semantics2.rs"
|
|
mode = "compile"
|
|
|
|
[[exercises]]
|
|
path = "exercises/move_semantics/move_semantics3.rs"
|
|
mode = "compile"
|
|
|
|
[[exercises]]
|
|
path = "exercises/move_semantics/move_semantics4.rs"
|
|
mode = "compile"
|
|
|
|
# ERROR HANDLING
|
|
|
|
[[exercises]]
|
|
path = "exercises/error_handling/errors1.rs"
|
|
mode = "test"
|
|
|
|
[[exercises]]
|
|
path = "exercises/error_handling/errors2.rs"
|
|
mode = "test"
|
|
|
|
[[exercises]]
|
|
path = "exercises/error_handling/errors3.rs"
|
|
mode = "test"
|
|
|
|
[[exercises]]
|
|
path = "exercises/error_handling/errorsn.rs"
|
|
mode = "test"
|
|
|
|
# OPTIONS / RESULTS
|
|
|
|
[[exercises]]
|
|
path = "exercises/error_handling/option1.rs"
|
|
mode = "test"
|
|
|
|
[[exercises]]
|
|
path = "exercises/error_handling/result1.rs"
|
|
mode = "test"
|
|
|
|
# THREADS
|
|
|
|
[[exercises]]
|
|
path = "exercises/threads/threads1.rs"
|
|
mode = "compile"
|
|
|
|
# STANDARD LIBRARY TYPES
|
|
|
|
[[exercises]]
|
|
path = "exercises/standard_library_types/arc1.rs"
|
|
mode = "compile"
|
|
|
|
[[exercises]]
|
|
path = "exercises/standard_library_types/iterators2.rs"
|
|
mode = "test"
|
|
|
|
[[exercises]]
|
|
path = "exercises/standard_library_types/iterators3.rs"
|
|
mode = "test"
|
|
|
|
[[exercises]]
|
|
path = "exercises/standard_library_types/iterators4.rs"
|
|
mode = "test"
|