Dead Simple Snapshot Testing In Zig

By Loris Cro

Snapshot testing is based on two principles:

  1. The assertion part of your tests is expressed as a comparison against a known good value.
  2. You use your tests to generate (and update) known good values automatically.
Read here.