Slide 63
Slide 63 text
When to PBT
● When high confidence is worth the effort
○ Critical code
● Problems with very large input/state spaces
○ Parsers
● Data structures, DDD aggregates/VO’s, monads ( )
○ anything with clear and complete laws or invariants
● Fuzzy/non-deterministic problems
○ might not have deterministic or knowable input->output relationships
○ e.g. classifiers, LLM’s
● Legacy code
○ Writing properties will quickly (in)validate mental model of the SUT
● Stateful systems that can be modeled