summaryrefslogtreecommitdiff
path: root/info.toml
diff options
context:
space:
mode:
authorDylan Nugent <dylnuge@gmail.com>2019-08-17 17:14:00 -0700
committerDylan Nugent <dylnuge@gmail.com>2019-08-17 17:16:19 -0700
commit5b1e673cec1658afc4ebbbc800213847804facf5 (patch)
treed256c711aa4c1a8a12a14b7122d755df37a52d16 /info.toml
parent2cd06826c0f4da8bc92825717e73eb44cd18095d (diff)
fix(primitive_types4): Fail on a slice covering the wrong area
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.
Diffstat (limited to 'info.toml')
-rw-r--r--info.toml2
1 files changed, 1 insertions, 1 deletions
diff --git a/info.toml b/info.toml
index d7f86f9..08114de 100644
--- a/info.toml
+++ b/info.toml
@@ -66,7 +66,7 @@ mode = "compile"
[[exercises]]
path = "exercises/primitive_types/primitive_types4.rs"
-mode = "compile"
+mode = "test"
[[exercises]]
path = "exercises/primitive_types/primitive_types5.rs"