Skip to content

Commit 118c1d1

Browse files
Add #includes necessary in example source
1 parent 418ccfd commit 118c1d1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

manual.markdown

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ CppUTest's core design principles
3434

3535
To write your first test, all you need is a new cpp file with a TEST_GROUP and a TEST, like:
3636
{% highlight c++ %}
37+
#include "CppUTest/TestHarness.h"
38+
3739
TEST_GROUP(FirstTestGroup)
3840
{
3941
};
@@ -60,6 +62,8 @@ One of the key design goals in CppUTest is to make it *very easy* to add and rem
6062
Of course, in order to get it to run, you'll need to create a main. Most of the mains in CppUTest are very similar. They typically are in an AllTests.cpp file and look like this:
6163

6264
{% highlight c++ %}
65+
#include "CppUTest/CommandLineTestRunner.h"
66+
6367
int main(int ac, char** av)
6468
{
6569
return CommandLineTestRunner::RunAllTests(ac, av);

0 commit comments

Comments
 (0)