Commit Graph

441 Commits (10d8357876fe1f6236b88ac652855acbfe126f5b)

Author SHA1 Message Date
lazywalker 9604ab6621 fix(exercises): use snake_case variables 1 year ago
liv 656140d9e6
Merge pull request #1478 from Ben2917/improved_tests_for_iterators5
fix: Added some extra tests to validate iterators5 solution
1 year ago
liv a6f99645c6 chore: rustfmt 1 year ago
liv 81cd97902a
Merge pull request #1487 from lionel-rowe/patch-1
feat(options2): better test for layered_option
1 year ago
Noah May 3ecb47ff2c fix(options3): panic when not matching to avoid false positives
Closes #1503
1 year ago
Aaron Wang d3fea5f15a
Merge branch 'main' into patch-2 1 year ago
PiqqiDesigns c4627e7112 chore: clarified cow owned_no_mutation comments 1 year ago
lionel-rowe 836134202e
feat(options2): better tests for layered_option
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.
1 year ago
Alan Gerber 319a8253ba fix(move_semantics2): fix line number comment
Commit fef8314 added three lines of comments, which left the line
numbers expected to stay unchanged mentioned on line 2 out of date.
1 year ago
Your Name 352267871c fix: Added some extra tests to validate iterators5 solution
closes: #1387
1 year ago
Aaron Wang 8ed2cf7ef5
Update move_semantics2.rs 1 year ago
Aaron Wang c74e0bfd18
docs: update line numbers in move_semantics2 1 year ago
liv 087e076ec0
Merge pull request #1384 from stornquist/patch-1
fix(move_semantics2): add expected output comment
1 year ago
liv ab6aa23cec
Merge pull request #1391 from ktheory/ktheory/iter5
docs: clarify instructions on iterators5.rs
1 year ago
liv 5fd3dfe01b
Merge pull request #1452 from guoard/markdown-linter
feat(docs): add markdown linter for exercises README.md files
1 year ago
poneciak 102d7f3d0e changed comments in tests
also fixed small logical issue in `Rectangle::new()` where u could create rectangle with width or height equals 0
1 year ago
poneciak c4974ac782 added required changes
- fixed grammar in hint and added more specific link
- added comments in test functions
- changed introduction paragraph
1 year ago
poneciak 27b7579566 created task 1 year ago
Alexandre ESSE 22bb662d3e fix(exercises): remove trailing spaces 1 year ago
Ali Afsharzadeh 382e16eb7e feat(docs): add markdown linter for exercises README.md files 1 year ago
Ali Afsharzadeh 1db646474e
docs(error_handling): resolve markdown linter warnings 1 year ago
liv 92f09dbe81
Merge pull request #1445 from guoard/patch-1
docs(variables): wrap mut keyword with backtick
1 year ago
liv e0e0b3f387
Merge pull request #1432 from ryanwhitehouse/main
docs:clarify instructions on hashmaps2.rs
1 year ago
Ali Afsharzadeh 592694036f
docs(variables): wrap mut keyword with backtick 1 year ago
liv 2012641610
Merge pull request #1428 from javihernant/changeLtReadme
change order of references in README.md
1 year ago
liv 864e741dd8 reword hashmaps2 a bit more 1 year ago
liv 6d4a87227d
Merge pull request #1437 from navicore/errors2-comment-error
correct comments in errors2.rs
1 year ago
Tom Kunc d5449c992e
feat(lifetimekata): Add info about Lifetimekata project 1 year ago
Ed Sweeney 4160b06c6c correct comments in errors2.rs 1 year ago
Ryan Whitehouse 5687676014 docs:clarify instructions on hashmaps2.rs 1 year ago
hxztnxt 5d91c86cf2 change order of references in README.md 1 year ago
Adam Brewer 7bab78c66d Rename iteration var names in vec2.rs for clarity
Resolves #1417
1 year ago
liv 36e66b545e
Merge pull request #1396 from 0lhi/main
fix(macros4.rs): Add rustfmt::skip to prevent auto-fix.
1 year ago
Chad Dougherty 8c88f769b6
rustfmt
rustfmt converts "main ()" -> "main()"
1 year ago
0lhi de24536187
macros4.rs: Add rustfmt::skip to prevent auto-fix.
The `macros4.rs` challenge can automatically be solved by rustfmt without the user noticing.

Adding `#[rustfmt::skip]` above the `macro_rules!` line fixes this issue.
1 year ago
Aaron Suggs 1ac66f372b docs: clarify instructions on iterators5.rs
I changed the sentence that referenced the imperative implementation in iterators5.rs.

That implementation was already removed and replaced with `todo!()`
1 year ago
Cyril MARPAUD 045d86aa42 refactor(arc1): improve readability by avoiding implicit dereference 1 year ago
Sebastian Törnquist fef8314d3d
fix(move_semantics2): add expected output comment
You can easily get this to compile with `vec0` being `[]` and `vec1` being `[22, 44, 66, 88]`
1 year ago
Gleb Shevchenko 238a496af5 fix: unify undisclosed type notation in errors5.rs 1 year ago
Daan Wynen bbdc5c6039 refactor(cow1): replace main with tests
Following the discussion in #1195 this is the best I could come up with.
The issue for me (and apparently a few other learners) was that the code
needed to complete the exercise was not _missing_, but was rather there
but wrong.

In the end, what made the difference between this exercise and others
(for me) was that in this exercise I was supposed to learn what to
*expect* of an output. So I think it makes sense here to let the learner
modify the tests and not the code itself.

Fixes #1195

Signed-off-by: Daan Wynen <black.puppydog@gmx.de>

# Conflicts:
#	info.toml
1 year ago
magnusrodseth 48ce9d2fd8 docs: add link to docs about `iter_mut` and `map` 1 year ago
liv f123cb2777
Merge pull request #1228 from grzegorz-zur/patch-1
Removed unnecessary use statement
1 year ago
liv 7be4fd891d
Merge pull request #1305 from platformer/issue1298
fix(threads1): make program panic if threads are not joined
1 year ago
liv b3de1b77bf
Merge pull request #1318 from kawaiiPlat/q2-minor-grammar
minor grammar tweak for quiz 2
1 year ago
liv 957522a492 feat(intro1): add note on rust-analyzer usage 1 year ago
Kevin Wan 4771a7b9e7
chore: fix prompt error
Missed a blank line, which causes the prompt incorrect like below:

```rust
You can keep working on this exercise,
or jump into the next one by removing the `I AM NOT DONE` comment:

 6 |  // Make this code compile by using the proper Rc primitives to express that the sun has multiple owners.
 7 |  
 8 |  // I AM NOT DONE
 9 |  use std::rc::Rc;
```
1 year ago
Jarrod Sanders 57834e9f8c
Minor Grammar 2 years ago
seporterfield 9860976af9
added existing chapter for clippy to mapping
It's real! https://doc.rust-lang.org/book/appendix-04-useful-development-tools.html
2 years ago
seporterfield b2b6e6900f
reformatted exercise->chapter mapping
Added and removed rows according to changes to exercise order and grouping.
2 years ago
seporterfield 66eaaf7b6e
fixed formatting 2 years ago