-
-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathepisode.yml
27 lines (27 loc) · 1.35 KB
/
episode.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
number: 6
title: Parameterized tests, macros, and refactoring
id: XJPci7GI-qg
intro: Let's fix a bug in my balanced brackets code and learn a few things about test organization and traits
details: >
There's some stuff to improve in my coding puzzle code from last time, balanced brackets.
Can you spot the bug and fix it? I'll show you what's wrong and an idiomatic way to solve the problem.
improvments:
- "[la10736](https://github.com/la10736) added [use rstest instead macros](https://github.com/hello-rust/show/pull/50) that use rstest_parametrize to create parametrized tests."
keywords:
- Test data providers
- Parameterized tests
- AsRef trait
- Macros
notes:
- "[AsRef trait](https://doc.rust-lang.org/std/convert/trait.AsRef.html)"
- "[Discussion around Into, AsRef and Cow](https://users.rust-lang.org/t/idiomatic-string-parmeter-types-str-vs-asref-str-vs-into-string/7934/4)"
- "[Macros in Rust](https://doc.rust-lang.org/book/second-edition/appendix-04-macros.html)"
licenses:
- "Comic suspense sound by tyops: https://freesound.org/people/tyops/sounds/347221/"
- "Background music: [Juanitos - Hola_Hola_Bossa_Nova](http://freemusicarchive.org/music/Juanitos/)"
chapters:
- "Straight to the code: 0:51"
- "Test reorganization: 3:46"
- "Parameterized tests using macros: 7:00"
- "Replacing Into with AsRef: 12:33"
- "Impl Trait: 14:35"