Loading
Current section: Principles 4 exercises
Problem

Debugging Intent vs. Implementation

Transcript

00:00 We write tests for them to fail, and it matters a lot when and how they fail. Let's take a look at our existing test for the greet function and run it. Oh, shoot, it looks like something's wrong. So we have an error that we're expecting hello, John message, but we're getting howdy, John. This is definitely not right,

00:20 and this is precisely why we write tests to let us know about the situations. But it's a pickle, where do you go from here? And even more so, who is in the wrong? Is it the intention or the implementation? This will be your task to figure out and to make sure that this test is passing again. And after you're done, I will walk you through

00:38 what I would do in this situation.