Commit Graph

177 Commits (c5898ac6b7d4e4048c40ac90b4c2669fc380660d)

Author SHA1 Message Date
Abdou Seck caf921a01f
Merge pull request #674 from Morsicus/fix/collections-exercises-naming
Update collections exercises naming
3 years ago
Taylor Yu c3e7b83178 fix: use trait objects for from_str
Use `Box<dyn error::Error>` to allow solutions to use `?` to propagate 
errors.
3 years ago
Mickael Fortunato bef39b1259 fix(collections): Naming exercises for vectors and hashmap 3 years ago
apogeeoak 96c56ab08a
chore: changed errors3 mode from test to compile 3 years ago
Cyrus Wyett 5157f56875
chore: fix typo
is however some --> are however some
3 years ago
apogeeoak c6712dfccd fix(iterators3): Enabled iterators3.rs to run without commented out tests. 3 years ago
apogeeoak baf4ba175b fix(iterators2): Moved errors out of tests.
Closes #359
3 years ago
apogeeoak b29ea17ea9 feat: Added iterators5.rs exercise. 3 years ago
John Baber-Lucero cddc1e86e7
fix(info): Fix typo (#635)
Co-authored-by: John Baber-Lucero <git@frundle.com>
3 years ago
fmoko 5772589dc3
Merge pull request #615 from wsh/docfixes
docs: mention flatten in the options2 hint
4 years ago
Will Hayworth e9b42bbc2a docs: mention flatten in the options2 hint 4 years ago
JuliaCao 90cfb6ff28 fix: added missing exercises to info.toml 4 years ago
JuliaCao 033bf1198f
feat: match exercise order to book chapters (#541)
Added exercise to book chapter mapping table to exercise README
4 years ago
Brock 9334783da3
fix(structs1): Adjust wording (#573)
Co-authored-by: fmoko <mokou@posteo.de>
4 years ago
sazid 633c00cf80 feat: Add HashMap exercises 4 years ago
sazid 0c12fa31c5 feat: Add Vec exercises 4 years ago
Rastamo e6bde22f9c
chore: primitive_types6 mode changed to test (#559)
primitive_types6 exercise was changed to test yesterday, but info.toml file wasn't updated.
I think this change should fix it.
4 years ago
fmoko 0f16463794
Merge pull request #489 from mukundbhudia/iterators1 4 years ago
Mukund Bhudia 8ff5fde88e
Update info.toml for typo fix
Co-authored-by: Andrew Marquez <andy2mgcc@gmail.com>
4 years ago
Ryan McQuen 3286c5ec19
fix(using_as): Add test so that proper type is returned. (#512) 4 years ago
Koalab99 ee7cdc66b3
chore: Removed extra whitespaces
Co-authored-by: Corentin ARNOULD <corentin.arn@gmail.com>
4 years ago
Mukund Bhudia 9642f5a3f6 feat: Added iterators1.rs exercise 4 years ago
iamcastelli ddd98ad75d
fix: Change then to than
`than` makes more grammatical sense than `then` in this context.
4 years ago
fmoko e1e453075f
Merge pull request #422 from AbdouSeck/show-tests-prints 4 years ago
Alexx Roche e6bd8021d9
fix(generics2): Guide students to the answer (#430) 4 years ago
Abdou Seck 8ad5f9bf53 feat: Add a --nocapture option to display test harnesses' outputs
This new feature can be accessed by invoking rustlings with --nocapture.

Both unit and integration tests added.

closes #262

BREAKING CHANGES:
The following function take a new boolean argument:
	* `run`
	* `verify`
	* `test`
	* `compile_and_test`
4 years ago
Alexx Roche 0dd1c6ca6b
fix: rename quiz1 to tests1 in info (#420)
`rustlings run tests1` wasn't working because of this typo.
4 years ago
fmoko 5f0806967c
Merge pull request #409 from AlexandruGG/feature/box-exercise 4 years ago
Allan Soares Duarte 500422d594
chore: Update variables6.rs book link 4 years ago
AlexandruGG df81141d6f Address PR feedback: add tests 4 years ago
AlexandruGG 7479a4737b feat: Add box1.rs exercise 4 years ago
Sanjay K 010a045692
feat: renames test to quiz, fixes #244
BREAKING CHANGE

* changed test to quiz: fixes issues in #244
* fixed info.toml: #244
* fixed naming related issues
4 years ago
IkaR49 763aa6e378
feat: Rewrite try_from_into (#393) 4 years ago
Jawaad Mahmood 9f75554f2a
fix(options1): Add hint about Array Initialization (#389) 4 years ago
fmoko 7c4b1f910c
Merge pull request #372 from DiD92/exercise_structs3 4 years ago
Rob Story 1da84b5f7c feat: Add if2 exercise 4 years ago
Dan Wilhelm 9590082848 fix: update iterator and macro text for typos and clarity
- /macros/README.md: Typo "modules" => "macros"
- iterators2.py: Reduce line length to <90-char width.
- iterators4.py: Update 'fun' => 'challenge' as per PR#177
- rustlings hint iterators4: improve clarity
4 years ago
Dídac Sementé Fernández b66e2e0962 feat: Added exercise structs3.rs 4 years ago
Aleksei Trifonov 32721bbc83
chore: fix missing space in the hint for errorsn.rs 4 years ago
Said Aspen a3a554aeed
Hints for structs1 and structs2 (#355) 4 years ago
Said Aspen 5999acd24a
feat: Add exercise variables6 covering const (#352) 4 years ago
Saurav abd0ec379c
chore: update variables5.rs book link (#351)
chore: update variables5.rs book link

chore: update variables5.rs book link
4 years ago
fmoko 2b80f6ed41
chore: Remove duplicate `option1` exercise 4 years ago
Sanjay K 86b5c08b9b
feat: Add Option2 exercise (#290)
* added option2

* changed up the exercise, modified the help section

* Update exercises/option/option2.rs

Co-Authored-By: fmoko <mokou@posteo.net>

* Update exercises/option/option2.rs

Co-Authored-By: fmoko <mokou@posteo.net>

* Update exercises/option/option2.rs

Co-Authored-By: fmoko <mokou@posteo.net>

Co-authored-by: fmoko <mokou@posteo.net>
4 years ago
fmoko 7ce42941ea
Merge pull request #282 from sanjaykdragon/master
feat: added option exercise
4 years ago
Sanjay K 3f8171475c updated info.toml 4 years ago
fmoko b135b589e0
Merge pull request #280 from sjmann/generics-exercises
feat: added generics exercises
4 years ago
Vincent Jousse 30e6af6069 Don't hardcode documentation version for traits 4 years ago
Sanjay K 135e5d47a7 feat: added excercise for option 4 years ago
sjmann 5b6e23c323 removed artifact from manual testing 4 years ago
sjmann 29b30ec946 Merge branch 'master' of https://github.com/sjmann/rustlings into generics-exercises 4 years ago
sjmann 76be5e4e99 feat: added new exercises for generics 4 years ago
Mario Reder 1e2fd9c92f feat: Add clippy lints
- adds a new 'clippy' category for exercises
- clippy exercises should throw no warnings
- install script now also installs clippy

is related to https://github.com/rust-lang/rust-clippy/issues/2604
4 years ago
bors 78295ce92f Auto merge of #274 - sjmann:master, r=fmoko
chore: fixed merge conflicts from traits exercises added by s-marios

I hope this doesn't step on any toes but I wanted to try the traits exercises from #216 so I updated them to match the new structure with hints included in info.toml
4 years ago
Stig Johan Berggren 8b971ffab6
Enable test for exercise test4 4 years ago
sjmann b559cdd73f added traits exercises 4 years ago
Torben Jonas 0c73609e6f feat: Add variables5.rs exercise
closes #260
5 years ago
Abdou Seck 0c85dc1193 feat: Add type conversion and parsing exercises 5 years ago
Roberto Vidal b565c4d3e7 fix: line numbers in several exercises and hints
The introduction of `I AM NOT DONE` shifted the lines of all
exercises, which now need adjustment.
5 years ago
Anastasis Georgoulas 4c5189df2b fix(primitive_types4): update outdated hint
Exercise was changed to test (and the order was switched) in #209.
5 years ago
Anastasis Georgoulas a09f684f05 fix(strings2): update line number in hint 5 years ago
ageorgou 8cc5af121c
Fix(functions4): Update line number in hint 5 years ago
marisa 1a7bb5a400 Address feedback 5 years ago
marisa 795b6e3480 fix(info): Fix trailing newlines for hints 5 years ago
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