summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Hülsmann <juliusHuelsmann@users.noreply.github.com>2020-03-17 12:54:04 +0100
committerMartin Hořeňovský <martin.horenovsky@gmail.com>2020-03-18 15:35:56 +0100
commit7048c2c269897b5fc6470e030818444f1b028a30 (patch)
tree3ac89fe7291dad585c3bb67cfbdb7a6b5a49aded
parent6f77d59b16b9792d98c78dae54b9d728e3a9607f (diff)
downloadcatch2-7048c2c269897b5fc6470e030818444f1b028a30.tar.gz
Update slow-compiles.md
Add missing "."
-rw-r--r--docs/slow-compiles.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/slow-compiles.md b/docs/slow-compiles.md
index 366adf29..230f5330 100644
--- a/docs/slow-compiles.md
+++ b/docs/slow-compiles.md
@@ -22,7 +22,7 @@ But functions and methods can also be written inline in header files. The downsi
Because Catch is implemented *entirely* in headers you might think that the whole of Catch must be compiled into every translation unit that uses it! Actually it's not quite as bad as that. Catch mitigates this situation by effectively maintaining the traditional separation between the implementation code and declarations. Internally the implementation code is protected by ```#ifdef```s and is conditionally compiled into only one translation unit. This translation unit is that one that ```#define```s ```CATCH_CONFIG_MAIN``` or ```CATCH_CONFIG_RUNNER```. Let's call this the main source file.
-As a result the main source file *does* compile the whole of Catch every time! So it makes sense to dedicate this file to *only* ```#define```-ing the identifier and ```#include```-ing Catch (and implementing the runner code, if you're doing that). Keep all your test cases in other files. This way you won't pay the recompilation cost for the whole of Catch
+As a result the main source file *does* compile the whole of Catch every time! So it makes sense to dedicate this file to *only* ```#define```-ing the identifier and ```#include```-ing Catch (and implementing the runner code, if you're doing that). Keep all your test cases in other files. This way you won't pay the recompilation cost for the whole of Catch.
## Practical example
Assume you have the `Factorial` function from the [tutorial](tutorial.md#top) in `factorial.cpp` (with forward declaration in `factorial.h`) and want to test it and keep the compile times down when adding new tests. Then you should have 2 files, `tests-main.cpp` and `tests-factorial.cpp`: