Commit 1757ff55c6c6b6a80358340df932fa5fb82930d2

Martin Mitas 2019-05-07T23:10:46

test/spec_tests.py: Make ready for spec.txt from cmark-gfm project. This allows easier checking of our GFM dialect compatibility.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/test/spec_tests.py b/test/spec_tests.py
index 57160b7..c739e5f 100755
--- a/test/spec_tests.py
+++ b/test/spec_tests.py
@@ -91,7 +91,8 @@ def get_tests(specfile):
         for line in specf:
             line_number = line_number + 1
             l = line.strip()
-            if l == "`" * 32 + " example":
+            #if l == "`" * 32 + " example":
+            if re.match("`{32} example( [a-z]{1,})?", l):
                 state = 1
             elif state == 2 and l == "`" * 32:
                 state = 0