1
0
mirror of https://github.com/rust-lang/rustlings.git synced 2025-04-25 12:14:50 +02:00
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
..
2022-07-15 13:24:11 +02:00
2022-07-14 18:11:18 +02:00
2023-01-01 02:02:49 +01:00
2022-08-28 15:12:15 +02:00
2022-10-04 11:43:23 +02:00
2022-07-14 18:15:47 +02:00
2022-09-06 12:10:53 +02:00
2023-01-03 09:22:52 -05:00
2022-07-14 18:11:18 +02: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