1.1 --- a/tests/test_sections.py Sat Mar 31 21:20:52 2012 +0200
1.2 +++ b/tests/test_sections.py Sun Apr 01 01:40:28 2012 +0200
1.3 @@ -1,26 +1,29 @@
1.4 #!/usr/bin/env python
1.5
1.6 -from ImprovedTableParser import replaceMarkers
1.7 +from ImprovedTableParser import patterns
1.8
1.9 text = """
1.10 -{{{
1.11 +{{{{{
1.12 Hello
1.13 -\\{\\{\\{
1.14 +{{{{
1.15 Hello again
1.16 -And also \\\\{\\\\{\\\\{ this \\\\}\\\\}\\\\}
1.17 -\\\\{\\\\{\\\\{
1.18 +And also {{{ this }}}
1.19 +{{{
1.20 And once again
1.21 -\\\\}\\\\}\\\\}
1.22 +}}}
1.23 And again
1.24 -\\}\\}\\}
1.25 +}}}}
1.26 again
1.27 -}}}
1.28 +}}}}
1.29 """
1.30
1.31 -replaced = replaceMarkers(text)
1.32 +matches = patterns["markers"].split(text)
1.33 +expected = 17
1.34
1.35 print text
1.36 print
1.37 -print replaced
1.38 +print matches
1.39 +print
1.40 +print len(matches) == expected, ": length is", len(matches), "==", expected
1.41
1.42 # vim: tabstop=4 expandtab shiftwidth=4