summaryrefslogtreecommitdiff
path: root/subplot.md
diff options
context:
space:
mode:
Diffstat (limited to 'subplot.md')
-rw-r--r--subplot.md59
1 files changed, 52 insertions, 7 deletions
diff --git a/subplot.md b/subplot.md
index f7d38ac..7c72ea8 100644
--- a/subplot.md
+++ b/subplot.md
@@ -488,7 +488,7 @@ functions: f.py
# Simple
This is the simplest possible test scenario
-```subplot
+```scenario
given precondition foo
when I do bar
then bar was done
@@ -544,6 +544,51 @@ then program finished successfully
~~~
+Empty lines in scenarios
+-----------------------------------------------------------------------------
+
+This scenario verifies that empty lines in scenarios are ignored.
+
+~~~scenario
+given file emptylines.md
+given file b.yaml
+given file f.py
+when I run sp-docgen emptylines.md -o emptylines.pdf
+then file emptylines.pdf exists
+when I run sp-docgen emptylines.md -o emptylines.html
+then file emptylines.html exists
+when I run sp-codegen --run emptylines.md -o test.py
+then scenario "Simple" was run
+then step "given precondition foo" was run
+then step "when I do bar" was run
+then step "then bar was done" was run
+then program finished successfully
+~~~
+
+
+### A document with a scenario with empty lines (emptylines.md)
+
+~~~~{.file #emptylines.md .markdown .numberLines}
+---
+title: Test scenario
+bindings: b.yaml
+functions: f.py
+...
+
+# Simple
+This is the simplest possible test scenario
+
+```scenario
+given precondition foo
+
+when I do bar
+
+then bar was done
+
+```
+~~~~
+
+
Document structure
-----------------------------------------------------------------------------
@@ -579,7 +624,7 @@ functions: f.py
## heading 1.1
### heading 1.1.1
-```subplot
+```scenario
given precondition foo
```
~~~~
@@ -608,7 +653,7 @@ functions: f.py
# heading 1
## heading 1.1a
-```subplot
+```scenario
given precondition foo
```
@@ -643,12 +688,12 @@ functions: f.py
## heading 1.1
### heading 1.1.1
-```subplot
+```scenario
given precondition foo
```
### heading 1.1.2
-```subplot
+```scenario
given precondition foo
```
~~~~
@@ -680,12 +725,12 @@ functions: f.py
## heading 1.1
### heading 1.1.1
-```subplot
+```scenario
given precondition foo
```
## heading 1.2
-```subplot
+```scenario
given precondition foo
```
~~~~