The problem with the current confirmations
Before we begin making changes, we should have some idea of why. TDD is all about the customer experience. How can we design something that is easy and intuitive to use? Let’s start by taking a look at a couple of existing tests:
TEST("Test string and string literal confirms")
{
std::string result = "abc";
CONFIRM("abc", result);
}
TEST("Test float confirms")
{
float f1 = 0.1f;
float f2 = 0.2f;
float sum = f1 + f2;
float expected = 0.3f;
CONFIRM(expected, sum);
}
These tests have served well and are easy, right? What we’re looking at here is not the tests themselves but the confirmations. This style of confirmation is called the classic style.
How would we speak or read aloud the first confirmation? It might go like...