summaryrefslogtreecommitdiff
path: root/exercises
AgeCommit message (Collapse)Author
2023-08-10add .to_mut() in test owned_mutation()Mate Kovacs
2023-08-07Fix from_into.rs testsAlon Hearter
2023-07-28chore(errors4): improved commentMarcus Höjvall
2023-07-21docs: dedup repeated sentenceAlexander González
2023-07-03added if3 based on: `Using if in a let Statement`Joshua Carlson
2023-06-23refactor: Update comment to use correct construct name 'Result' instead of ↵Anish
'Option' Refactor the comment in the code to provide a more accurate description of the construct being used. Replace the mention of Option with Result.
2023-06-12Merge branch 'main' into comment_cleanupliv
2023-06-12Merge pull request #1546 from b-apperlo/b-apperlo-patch-1liv
feat: added test function to hashmaps2.rs
2023-06-12Merge pull request #1547 from b-apperlo/b-apperlo-patch-2liv
fix: update hashmaps3.rs
2023-06-12Merge pull request #1549 from IVIURRAY/enums3-message-testliv
fix(enums3): add test for message
2023-06-12feat(move_semantics2): rewrite hintliv
2023-06-08fix(enums3): add test for messageIVIURARY
closes #1548
2023-06-08fix: updated comment for structBert Apperlo
2023-06-08fix: update hashmaps3.rsBert Apperlo
2023-06-08feat: added test function to hashmaps2.rsBert Apperlo
The existing test functions only check if a kind of fruit exists in the hashmap, but not if the amount of fruits is higher than zero. This new test function solves this.
2023-05-29docs: cleanup the explanation paragraphs at the start of each exercise.Robert Fry
2023-05-23fix(exercises): use snake_case variableslazywalker
2023-05-17Merge pull request #1478 from Ben2917/improved_tests_for_iterators5liv
fix: Added some extra tests to validate iterators5 solution
2023-05-17chore: rustfmtliv
2023-05-17Merge pull request #1487 from lionel-rowe/patch-1liv
feat(options2): better test for layered_option
2023-05-09fix(options3): panic when not matching to avoid false positivesNoah May
Closes #1503
2023-05-01Merge branch 'main' into patch-2Aaron Wang
2023-04-27chore: clarified cow owned_no_mutation commentsPiqqiDesigns
2023-04-21feat(options2): better tests for layered_optionlionel-rowe
The existing test can be solved with the following: ```rs while let Some(integer) = optional_integers.pop() { assert_eq!(integer.unwrap(), range); ``` Similarly with `expect(...)`, `unwrap_or(0)`, `unwrap_or_default()`, etc. However, none of these solutions use the learning point of stacking `Option<T>`s. The updated test can _only_ be solved by stacking `Option<T>`s: ```rs while let Some(Some(integer)) = optional_integers.pop() { assert_eq!(integer, cursor); ``` With the updated test, using `unwrap` or `expect` will panic when it hits the `None` value, and using `unwrap_or` or `unwrap_or_default` will cause the final `assert_eq!(cursor, 0)` to panic.
2023-04-20fix(move_semantics2): fix line number commentAlan Gerber
Commit fef8314 added three lines of comments, which left the line numbers expected to stay unchanged mentioned on line 2 out of date.
2023-04-15fix: Added some extra tests to validate iterators5 solutionYour Name
closes: #1387
2023-04-10Update move_semantics2.rsAaron Wang
2023-04-07docs: update line numbers in move_semantics2Aaron Wang
2023-04-05Merge pull request #1384 from stornquist/patch-1liv
fix(move_semantics2): add expected output comment
2023-04-05Merge pull request #1391 from ktheory/ktheory/iter5liv
docs: clarify instructions on iterators5.rs
2023-04-05Merge pull request #1452 from guoard/markdown-linterliv
feat(docs): add markdown linter for exercises README.md files
2023-04-05changed comments in testsponeciak
also fixed small logical issue in `Rectangle::new()` where u could create rectangle with width or height equals 0
2023-04-05added required changesponeciak
- fixed grammar in hint and added more specific link - added comments in test functions - changed introduction paragraph
2023-04-05created taskponeciak
2023-03-31fix(exercises): remove trailing spacesAlexandre ESSE
2023-03-30feat(docs): add markdown linter for exercises README.md filesAli Afsharzadeh
2023-03-29docs(error_handling): resolve markdown linter warningsAli Afsharzadeh
2023-03-28Merge pull request #1445 from guoard/patch-1liv
docs(variables): wrap mut keyword with backtick
2023-03-28Merge pull request #1432 from ryanwhitehouse/mainliv
docs:clarify instructions on hashmaps2.rs
2023-03-28docs(variables): wrap mut keyword with backtickAli Afsharzadeh
2023-03-26Merge pull request #1428 from javihernant/changeLtReadmeliv
change order of references in README.md
2023-03-26reword hashmaps2 a bit moreliv
2023-03-26Merge pull request #1437 from navicore/errors2-comment-errorliv
correct comments in errors2.rs
2023-03-25feat(lifetimekata): Add info about Lifetimekata projectTom Kunc
2023-03-24correct comments in errors2.rsEd Sweeney
2023-03-20docs:clarify instructions on hashmaps2.rsRyan Whitehouse
2023-03-16change order of references in README.mdhxztnxt
2023-03-10Rename iteration var names in vec2.rs for clarityAdam Brewer
Resolves #1417
2023-02-26Merge pull request #1396 from 0lhi/mainliv
fix(macros4.rs): Add rustfmt::skip to prevent auto-fix.
2023-02-24rustfmtChad Dougherty
rustfmt converts "main ()" -> "main()"