summaryrefslogtreecommitdiffstats
path: root/test/fixtures
diff options
context:
space:
mode:
authorAaron O'Mullan <aaron.omullan@friendco.de>2014-04-08 15:01:12 -0700
committerAaron O'Mullan <aaron.omullan@friendco.de>2014-04-08 15:01:12 -0700
commit392573a9905a36d4a6c3cc1947c533f742b653a2 (patch)
treedd47c5039cdf2b24e8b54c141d2d5f161d116f4b /test/fixtures
parent554d6a6170d448d3c4cd635528d4f94e928472f2 (diff)
downloadgitbook-392573a9905a36d4a6c3cc1947c533f742b653a2.zip
gitbook-392573a9905a36d4a6c3cc1947c533f742b653a2.tar.gz
gitbook-392573a9905a36d4a6c3cc1947c533f742b653a2.tar.bz2
Add lexing support for content code in exercises
#52, #49, #46
Diffstat (limited to 'test/fixtures')
-rw-r--r--test/fixtures/PAGE.md33
1 files changed, 33 insertions, 0 deletions
diff --git a/test/fixtures/PAGE.md b/test/fixtures/PAGE.md
index 2839e6d..92ee707 100644
--- a/test/fixtures/PAGE.md
+++ b/test/fixtures/PAGE.md
@@ -30,3 +30,36 @@ Some more nice content ....
[Cool stuff](http://gitbook.io)
[Link to another Markdown file](./xyz/file.md)
+
+Lets go for another exercise but this time with some context :
+
+---
+
+Exercise with some context code :
+
+Using the `double` function provided, build a `quadruple` function
+
+```py
+
+```
+
+```py
+
+def quadruple(x):
+ return double(double(x))
+
+```
+
+```py
+assert(quadruple(8), 32)
+```
+
+```py
+
+def double(x):
+ return x * 2
+
+```
+
+---
+