mirror of
https://github.com/catchorg/Catch2.git
synced 2025-08-13 17:44:52 +02:00
Updated Getting the source code (markdown)
@@ -14,7 +14,7 @@ The rest of this tutorial will assume that the CATCH root folder is available un
|
|||||||
|
|
||||||
# Writing tests
|
# Writing tests
|
||||||
|
|
||||||
Let's start with a really simple example. Say you have written a function to calculate factorials and now you want to test it. To keep things simple we'll put everything in a single file.
|
Let's start with a really simple example. Say you have written a function to calculate factorials and now you want to test it (let's leave aside TDD for now). To keep things simple we'll put everything in a single file.
|
||||||
|
|
||||||
```c++
|
```c++
|
||||||
#include "catch_with_main.hpp" // This brings in a default implementation for main()
|
#include "catch_with_main.hpp" // This brings in a default implementation for main()
|
||||||
|
Reference in New Issue
Block a user