~/talk

650 line C++ unit test library (easy to use)

Talkat CppCon 2019 · 2019-09-15..09-20· [testing, c-and-cpp]
links:none on file
slides:none on file

Shows a tiny single-header C++ unit test library that teaches beginners by example using a string-splitting demo, finds a real bug for empty input, and demonstrates fixing it so both tests pass. Library uses an auto-generated main (define a symbol, include the header) and lets tests be written as scenarios as functions. Tests render output and organize into hierarchical test groups like operation/normal and operation/edge. Code on GitHub.

AI-written summary · about

  1. 0:00Start
  2. 1:05break up a string
  3. 2:02using a single header file unit test library
  4. 3:24test this with an empty string for the input
  5. 4:41divide your unit tests up into a hierarchy
~/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.