Commit Graph

13 Commits (9bdb0a12e45a8e9f9f6a4bd4a9c172c5376c7f60)

Author SHA1 Message Date
marisa 9bdb0a12e4 feat: Refactor hint system
Hints are now accessible using the CLI subcommand `rustlings hint
<exercise name`.

BREAKING CHANGE: This fundamentally changes the way people interact with exercises.
5 years ago
marisa 627cdc07d0 feat: Index exercises by name
BREAKING CHANGE: This changes the way you use `rustlings run` by now
requiring an abridged form of the previous filename, e.g:

`rustlings run exercises/if/if1.rs` becomes
`rustlings run if1`
5 years ago
marisa fbe91a67a4 fix(threads): Move Threads behind SLT
Closes #205.
5 years ago
marisa 6dcecb38a4 fix(strings): Move Strings before Structs
Closes #204.
5 years ago
Thomas Holloway dc15032112 feat: Add enums exercises 5 years ago
Viacheslav Avramenko 1c4c8764ed feat: Added exercise for struct update syntax 5 years ago
Dylan Nugent 5b1e673cec 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.
5 years ago
Niklas Anderson a750e4a1a3 fix(option1): Add test for prematurely passing exercise
Fixes the bug referenced in #160, but does not address the larger feature work referenced by the issue.
5 years ago
Jesse 9288fccf07 feat(iterators2): adds iterators2 exercise including config 5 years ago
Russell Cousineau 433d2115bc fix(iterators): Rename iterator3.rs 5 years ago
Brian Kung 9b92aa08ae Adds a simple exercise for structures 5 years ago
LesnyRumcajs 58ccd72aff
Add standard library types to exercises suite 5 years ago
lyn 70e59cca3c standardize exercise running via an external toml file 5 years ago