summaryrefslogtreecommitdiff
path: root/exercises
AgeCommit message (Collapse)Author
2021-07-07fix(quiz1): Updated question description (#794)Rakshit Sinha
Co-authored-by: Rakshit Sinha <rakshit.sinha@oracle.com>
2021-07-06docs: Update collections README with HashMap linklauralindzey
2021-07-05docs: Update exercise to chapter mapping for HashMapLaura Lindzey
2021-06-24Merge pull request #771 from tlyu/iterators5-trait-tweakmarisa
fix(iterators5): derive Clone, Copy
2021-06-24Merge pull request #772 from tlyu/errors-reworkmarisa
feature: improve error_handling exercises
2021-06-09address review feedbackTaylor Yu
Adjust error text and naming to conform with best practices. Use `map_err()` instead of `or()`. Wrap lower-level errors instead of ignoring their details. Also, don't "cheat" by bypassing the `new()` function in tests. Fix a dangling reference in the try_from_into hints.
2021-06-07fix(variables5): confine the answer furtherZC
let mut number = 3; can lead to a correct answer, so the comment helps to direct the users to the intended answer.
2021-06-06feature: improve error_handling exercisesTaylor Yu
Add new exercises errors5 and errors6, to introduce boxed errors and custom error enums more gently. Delete errorsn, because it tried to do too much too soon.
2021-06-06fix: rename result1 to errors4Taylor Yu
Also put it in the ERROR HANDLING section where it probably belongs.
2021-06-06fix(iterators5): derive Clone, CopyTaylor Yu
To allow more flexibility in solutions, derive `Clone` and `Copy` for `Progress`.
2021-05-22fix: move_semantics5 hintsTaylor Yu
Improve the hints for move_semantics5, as well as the explanatory comments in the code. Previously, it was not clear what possible changes were allowed. It seems that reordering the statements might be the intended solution. The previous comment about not "adding newlines" doesn't make sense, so treating it as "adding new lines" makes it more clear.
2021-05-17feat: Add move_semantics5 exercise. (#746)Sateesh
* feat: Add move_semantics5 exercise. * feat: Add option3 exercise * Address review comments. Fix typos, sentence formatting. * Remove unwanted newline. * Address review comments: make comment inline, fix format in print.
2021-05-12fix: remove trailing whitespaces from iterators1Juan Pablo Ramirez
2021-05-11fix: add hints to generics1 and generics2 exercisesJuan Pablo Ramirez
2021-05-09fix: remove trailing whitespaceJuan Pablo Ramirez
2021-04-29style(standard_library_types): stray line breakPi Delport
2021-04-25chore: Update quiz1.rs add explicit test for 40Maarten Tibau
2021-04-23docs(exercises): updated all exercises readme filesZerotask
all exercises readme files now have a unified structure and a description
2021-04-23Merge pull request #721 from Zerotask/add-further-help-for-generics3marisa
docs(generics): add bounds help
2021-04-22docs(generics): add bounds helpZerotask
add help for bounds provided by the rust by example book
2021-04-22docs(errors): add additional help for Result/BoxingZerotask
add additional help information provided by the rust by example book
2021-04-21feat(arc1): Add more details to description and hint (#710)Brandon Macer
Co-authored-by: bmacer <bmacer@cisco.com> Co-authored-by: marisa <mokou@fastmail.com> Co-authored-by: Roberto Vidal <vidal.roberto.j@gmail.com>
2021-04-21Merge pull request #646 from apogeeoak/iteratormarisa
Added iterators5.rs exercise.
2021-04-20Improved iterators5.rs explanation.apogeeoak
2021-04-20Merge pull request #648 from apogeeoak/iterator2marisa
Moved iterators2.rs errors out of tests.
2021-04-20Merge pull request #649 from apogeeoak/iterator3marisa
Enabled iterators3.rs to run without commented out tests.
2021-04-20fix(structs): Add 5.3 to structs/README (#652)Shao Yang Hong
Co-authored-by: Shao Yang Hong <shaoyang.hong@ninjavan.co>
2021-04-20fix(option2): Rename uninformative variables (#675)k12ish
Renaming uninformative names like `optional_value`, `value`, `optional_values_vec` and `value` helps users distinguish between the two parts of the task.
2021-04-20fix(hashmap2): Update incorrect assertion (#660)Pete Pavlovski
The test description says "at least five types of fruit", but the test itself is checking for exactly five types of fruit, which was a bit misleading for newcomers like me :) A simple change from "==" to ">=" should do the trick and successfully check for the "at least" condition.
2021-04-13Merge pull request #697 from WowSuchRicky/mainAbdou Seck
Rename 'Lichi' to 'Lychee' in the fruit example
2021-04-13Merge pull request #674 from Morsicus/fix/collections-exercises-namingAbdou Seck
Update collections exercises naming
2021-04-09Rename lichi to lychee in the fruit exampleWowSuchRicky
2021-04-04fix: use trait objects for from_strTaylor Yu
Use `Box<dyn error::Error>` to allow solutions to use `?` to propagate errors.
2021-04-04fix: use trait objects for try_from_intoTaylor Yu
Use `Box<dyn error::Error>` to allow solutions to use `?` to propagate errors. In the tests, explicitly check `is_ok()` instead of trying to force the error type to `String` (or other `PartialEq` type) using `assert_eq!()`.
2021-04-04fix(functions3): improve function argument type (#687)Ignacio Le Fluk
2021-03-20chore: capitalize `c` letterRod Elias
By capitalizing the `c` letter it makes clear that we're talking about the C programming language.
2021-03-18doc: Update collections exercises instruction to match the standard namingMickael Fortunato
2021-03-18fix(collections): Naming exercises for vectors and hashmapMickael Fortunato
2021-03-16fix(quiz3): Force an answer to Q2 (#672)Pascal H
Add also an example of unimplemented!() macro.
2021-03-15chore: clarify collections documentationPascal H
C++ `map` is more like BTreeMap. `unordered_map` in C++(11) is the equivalent of `HashMap` in Rust. (+ additional like for references).
2021-03-13fix(structs3): reword heading comment (#664)Darius Wiles
2021-03-12fix: add check to prevent naive implementation of is_internationalcadolphs
* fix(structs3): Add check to prevent naive implementation * chore(structs3): Add a missed newline after the test I added
2021-02-21fix(from_str): Correct typosJirka Kremser
typos in the comments
2021-02-12fix(iterators3): Enabled iterators3.rs to run without commented out tests.apogeeoak
2021-02-11fix(iterators2): Moved errors out of tests.apogeeoak
Closes #359
2021-02-10feat: Added iterators5.rs exercise.apogeeoak
2021-02-07fix(move_semantics4): Remove redundant "instead" (#640)Tal
2021-01-21fix(from_str): test for error instead of unwrap/should_panicJean-Francois Chevrette
2021-01-09feat(from_into) : add test for checking unnecessary trailing valueSang-Heon Jeon
2021-01-09feat(from_str) : add test for checking unnecessary trailing valueSang-Heon Jeon