Conventions used
There are a number of text conventions used throughout this book.
Code in text
: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: “That’s why the confirm macros we have now are called CONFIRM_TRUE
and CONFIRM_FALSE
.”
A block of code is set as follows:
TEST("Test bool confirms")
{
bool result = isNegative(0);
CONFIRM_FALSE(result);
result = isNegative(-1);
CONFIRM_TRUE(result);
}
Any command-line input or output is written as follows:
Running 3 tests --------------- Test can be created Passed --------------- Test with throw can be created Passed --------------- Test that never throws can be created Failed Expected exception type int was not thrown. --------------- Tests passed: 2 Tests failed: 1 Program ended with exit code: 1
Bold: Indicates a new term, an important word, or words that you see onscreen. For instance, words in menus or dialog boxes appear in bold. Here is an example: “We’ll just change the status from Failed to Expected failure.”
Tips or important notes
Appear like this.