Too Long; Didn't Read
If you come from OO and have ever tested any piece of software chances are you’ve employed example-based testing. In other words, the function under test is called with some predefined input and the return value is checked against some predefined expectation. For instance, the function <code class="markup--code markup--p-code">sum</code> is called with <code class="markup--code markup--p-code">1</code> and <code class="markup--code markup--p-code">2</code> and the expected result is <code class="markup--code markup--p-code">3</code>.