Skip to content

Commit a8c9bfd

Browse files
Gordon J. Köhnclaude
andcommitted
style: improve spacing on Hypothesis slides
- Shorten headings from h3 to h4 to prevent wrapping - Add vertical space after intro text on slide 22 - Add vertical space before command on slide 38 Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent 7dc0065 commit a8c9bfd

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

docs/slides.qmd

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -557,9 +557,11 @@ class SimulationResult(BaseModel):
557557

558558
**Flip the playbook:** Don't write examples. Describe *properties* that must always hold.
559559

560+
&nbsp;
561+
560562
::: {.columns}
561563
::: {.column width="50%"}
562-
### ❌ Example-based: You pick the cases
564+
#### ❌ Example-based
563565

564566
```python
565567
def test_sort():
@@ -573,7 +575,7 @@ You test what you think of. Bugs hide in what you don't.
573575
:::
574576

575577
::: {.column width="50%"}
576-
### ✓ Property-based: Computer picks the cases
578+
#### ✓ Property-based
577579

578580
```python
579581
from hypothesis import given, strategies as st
@@ -980,6 +982,8 @@ def test_remove_duplicates(items):
980982
assert all(items.index(y) > original_idx for y in result[i+1:] if y != x)
981983
```
982984

985+
&nbsp;
986+
983987
```bash
984988
pixi run pytest demos/demo_hypothesis.py -v --hypothesis-show-statistics
985989
```

0 commit comments

Comments
 (0)