~/talk

Property-based testing beginning with SwiftCheck

TalkinJapaneseat try! Swift Tokyo 2019 · 2019-03-21..03-22· [testing, swift]

Introduces property-based testing in Swift using the open-source SwiftCheck framework, showing concrete runnable properties like a reverse function’s length invariance and that reversing twice yields the original, with the framework running ~100 random cases and reporting failures. Demonstrates shrinking to minimize failing examples and applies the technique to real examples: verifying maze generators are solvable, testing encode/decode roundtrips, and comparing fast vs slow implementations for equal outputs.

AI-written summary · about

  1. 0:00Introduction
  2. 1:28Property-based testing
  3. 6:31SwiftCheck basics
  4. 9:11SwiftCheck keywords
  5. 12:13Testing examples
  6. 16:25Summary
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.