diff options
author | Aaron O'Mullan <aaron.omullan@friendco.de> | 2014-07-10 17:49:50 +0200 |
---|---|---|
committer | Aaron O'Mullan <aaron.omullan@friendco.de> | 2014-07-10 17:49:50 +0200 |
commit | d16577e8bf2e404cbc2cabb78fc1bf6c8a36d3ea (patch) | |
tree | 83e78b9028850606722da6ec66c45e453ee28693 /test/fixtures | |
parent | 15b4053d6beeeda7ff89bc947149d61a1a8c2d21 (diff) | |
download | gitbook-d16577e8bf2e404cbc2cabb78fc1bf6c8a36d3ea.zip gitbook-d16577e8bf2e404cbc2cabb78fc1bf6c8a36d3ea.tar.gz gitbook-d16577e8bf2e404cbc2cabb78fc1bf6c8a36d3ea.tar.bz2 |
Add tests for includes
Diffstat (limited to 'test/fixtures')
-rw-r--r-- | test/fixtures/INCLUDES.md | 29 | ||||
-rw-r--r-- | test/fixtures/included.c | 7 |
2 files changed, 36 insertions, 0 deletions
diff --git a/test/fixtures/INCLUDES.md b/test/fixtures/INCLUDES.md new file mode 100644 index 0000000..22e3a61 --- /dev/null +++ b/test/fixtures/INCLUDES.md @@ -0,0 +1,29 @@ +# Beautiful chapter + +Here is a nice included snippet : + +```c +{{ included.c }} +``` + +---- + +An exercise using includes + +```c +{{ included.c }} + +Remove this extra code at the end +``` + +```c +{{ included.c }} +``` + +```c +{{ included.c }} + +This validation code is wrong but who cares ? +``` + +---- diff --git a/test/fixtures/included.c b/test/fixtures/included.c new file mode 100644 index 0000000..d9323e3 --- /dev/null +++ b/test/fixtures/included.c @@ -0,0 +1,7 @@ +#include <stdio.h> + +int main(int argc, char *argv[]) { + printf("All is well\n"); + + return 0; +} |