aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2016-08-08 16:02:34 +0200
committerJohn MacFarlane <jgm@berkeley.edu>2016-08-08 16:02:34 +0200
commite834e4b16cf6cfc1df1a38eb536429c624afde01 (patch)
tree516db436de23eaba74dfaa5b59b9d9d717d05080
parentaf9548acaa27f5e6335be46c597f35dde8b85fd1 (diff)
Test suite: Don't mess up on examples with 32 `s.
Closes #423.
-rwxr-xr-xtest/spec_tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/spec_tests.py b/test/spec_tests.py
index 365ff75..57160b7 100755
--- a/test/spec_tests.py
+++ b/test/spec_tests.py
@@ -93,7 +93,7 @@ def get_tests(specfile):
l = line.strip()
if l == "`" * 32 + " example":
state = 1
- elif l == "`" * 32:
+ elif state == 2 and l == "`" * 32:
state = 0
example_number = example_number + 1
end_line = line_number