summaryrefslogtreecommitdiff
path: root/exercises
AgeCommit message (Collapse)Author
2023-09-09Merge pull request #1667 from husjon/update-primitive_types3-requirementliv
Make `primitive_types3` require at least 100 elements
2023-09-08Fix compiler error and clarify instructionsOscar Bonilla
2023-09-08Make primitive_types3 require at least 100 elementsJon Erling Hustadnes
Made the function panic if it's not long enough
2023-09-06Merge pull request #1641 from mo8it/move-semantics5-testliv
Convert exercises with assertions to tests
2023-09-04Merge pull request #1565 from pksadiq/fix-enum3-message-modificationliv
fix(enums3): modify message string in test
2023-09-04Merge pull request #1477 from bean5/mainliv
small changes to a few README files
2023-09-04Merge pull request #1660 from rust-lang/fix/move-semantics-testsliv
fix: refactor move semantics 1-4 into tests
2023-09-04fix: refactor move semantics 1-4 into testsliv
2023-09-04Merge pull request #1599 from szabgab/if1-test-caseliv
add test-case to if/if1 to check equal values
2023-09-04Merge pull request #1610 from jrcarl624/patch-1liv
Updated if3.rs: Added a note that states that the test does not need to be changed.
2023-09-04fix: add extra line in if3 commentliv
2023-09-04Merge pull request #1620 from mkovaxx/fix_1611liv
Fix 1611
2023-08-29Merge pull request #1645 from mo8it/prober-types-structs3liv
Use u32 instead of i32
2023-08-29Use u32 instead of i32mo8it
2023-08-27Convert other exercises that have assertions to test modemo8it
2023-08-27Fix typomo8it
2023-08-27Make move_semantics5 a testmo8it
2023-08-25fix(errors1): change Result to Option in exersise descriptionIvan Vasiunyk
2023-08-14Fix comment in errors2Kevin C
2023-08-10add .to_mut() in test owned_mutation()Mate Kovacs
2023-08-07Fix from_into.rs testsAlon Hearter
2023-08-01Added note related to tests.Joshua Carlson
2023-07-28chore(errors4): improved commentMarcus Höjvall
2023-07-21docs: dedup repeated sentenceAlexander González
2023-07-20add test-case to if/if1 to check equal valuesGabor Szabo
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-16fix(enums3): modify message string in testMohammed Sadiq
Otherwise it won't actually test the change of state.message and it would fail to check if the user missed changing state.message This happened to me as I had a catch-all line in `match`
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-13docs: Replace apostrophe (for consistency with other README files)bean5
2023-04-10Update move_semantics2.rsAaron Wang