rustlings-solutions/exercises
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
2023-02-14 20:37:33 +01:00
..
clippy
conversions chore: added more descriptive TODOs 2022-11-24 19:39:54 +00:00
enums chore: update enums3.rs addressing extra parentheses usage with tuples 2022-12-30 08:14:13 -06:00
error_handling style: format errors6 with rustfmt 2022-11-06 20:42:17 +01:00
functions
generics
hashmaps fix(hashmaps3): fix typo in todo hint 2022-12-20 21:17:32 -06:00
if
intro feat(intro1): add note on rust-analyzer usage 2023-02-12 15:47:58 +01:00
iterators moved iterator exercises 2023-01-01 02:02:49 +01:00
lifetimes Add quotes 2022-08-28 15:12:15 +02:00
macros feat(macros-readme): Add link to MacroKata 2022-10-24 13:57:44 +11:00
modules
move_semantics
options Merge pull request #1228 from grzegorz-zur/patch-1 2023-02-12 16:54:43 +01:00
primitive_types
smart_pointers refactor(cow1): replace main with tests 2023-02-14 20:37:33 +01:00
strings fix: make strings3.rs comment wording more clear 2022-07-16 17:28:13 +02:00
structs Added spaces around * 2022-10-04 11:43:23 +02:00
tests
threads fix(threads1): make program panic if threads are not joined 2022-12-26 02:25:43 -06:00
traits chore: tidied up unmatched backticks 2022-11-24 19:41:25 +00:00
variables
vecs docs: add link to docs about iter_mut and map 2023-02-12 18:26:13 +01:00
quiz1.rs fix(quiz1): add fourth assert 2022-09-06 12:10:53 +02:00
quiz2.rs Minor Grammar 2023-01-03 09:22:52 -05:00
quiz3.rs
README.md added existing chapter for clippy to mapping 2023-01-01 02:34:58 +01:00

Exercise to Book Chapter mapping

Exercise Book Chapter
variables §3.1
functions §3.3
if §3.5
primitive_types §3.2, §4.3
vecs §8.1
move_semantics §4.1-2
structs §5.1, §5.3
enums §6, §18.3
strings §8.2
modules §7
hashmaps §8.3
options §10.1
error_handling §9
generics §10
traits §10.2
tests §11.1
lifetimes §10.3
iterators §13.2-4
threads §16.1-3
smart_pointers §15, §16.3
macros §19.6
clippy §21.4
conversions n/a