-
-
Notifications
You must be signed in to change notification settings - Fork 20
/
episode.yml
34 lines (34 loc) 路 1.66 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
28
29
30
31
32
33
34
number: 7
title: Parsing dates using proptest and TDD
id: zb7SD0Jco6g
intro: Testing is hard, as can be seen in the last two episodes. That's why I looked around for better alternatives and found proptest.
details: >
Let's take a look at proptest, a library for automatically generating testcases similar to quickcheck (of Haskell fame).
We will parse informal english dates like "4th of September 1927" using Proptest and TDD.
keywords:
- Property testing
- Quickcheck
- Unit testing
- Fuzzy testing
- TDD
notes:
- "[Proptest](https://github.com/AltSysrq/proptest) crate by Jason Lingle"
- "[Quickcheck crate for Rust](https://github.com/BurntSushi/quickcheck) by Andrew Gallant"
- "[History of quickcheck](https://en.wikipedia.org/wiki/QuickCheck)"
- "[Chrono english crate](https://github.com/stevedonovan/chrono-english) by Steve J Donovan"
errata:
- "[vikrrrr](https://github.com/vikrrrr) found [a beautiful way to parse the month using Option::map](https://github.com/hello-rust/show/pull/42)."
metas:
- "I prefer to use `ok_or_else` as `ok_or` evaluates eagerly and [might get deprecated](https://github.com/rust-lang/rust/issues/51292)"
licenses:
- "Pizzicato by Setuniman: https://freesound.org/people/Setuniman/sounds/149827/"
- "Lynx pizzicanto by filmistro: https://filmstro.com/music/pizzicato-strings"
- "Bug image: https://www.freepik.com/free-vector/funny-insects-icon-set_1488662.htm#term=bug&page=1&position=9"
chapters:
- "Straight to the code!: 0:46"
- "Our first test: 8:03"
- "Bug fixing countdown: 14:09"
- "Vector lookup using position(): 21:15"
- "Introduction to proptest: 33:38"
- "Hello Campino: 47:41"
- "Summary: 55:42"