# HG changeset patch # User ali # Date 1328173597 0 # Node ID c4b472e1fc9a6f775ff6cac8816579217a0b0db4 # Parent 3c57a6fd0a135da5e1e689e20fda058d04ee48c5 Add testcase for brackets diff -r 3c57a6fd0a13 -r c4b472e1fc9a test/compatibility/Makefile.am --- a/test/compatibility/Makefile.am Tue Jan 31 19:20:36 2012 +0000 +++ b/test/compatibility/Makefile.am Thu Feb 02 09:06:37 2012 +0000 @@ -3,6 +3,6 @@ spaced-doublequote.tst mismatched-quotes.tst he-be.tst digits.tst \ extra-period.tst ellipsis.tst short-line.tst abbreviation.tst \ example.tst non-ascii.tst embedded-lf.tst markup.tst \ - user-defined-typo.tst + user-defined-typo.tst brackets.tst dist_pkgdata_DATA=$(TESTS) diff -r 3c57a6fd0a13 -r c4b472e1fc9a test/compatibility/brackets.tst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/compatibility/brackets.tst Thu Feb 02 09:06:37 2012 +0000 @@ -0,0 +1,44 @@ +**************** INPUT **************** +This (excellent paragraph has one more {opening} paranthesis than closing. + +On the other hand, this poor) paragraph does it backwards. + +This {slightly odd paragraph has one more [opening] brace than closing. + +And again, this balmy} paragraph does it backwards. + +This paragraph[11 has one more (opening) bracket than closing. + +Whereas this one is 12]tupsy turvey. + +This _very_ important_ paragraph has an odd number of underscores. + +Unspaced brackets are a[most a]ways _wrong_. +**************** EXPECTED **************** + +This (excellent paragraph has one more {opening} paranthesis than closing. + Line 2 - Mismatched round brackets? + +On the other hand, this poor) paragraph does it backwards. + Line 4 - Mismatched round brackets? + +This {slightly odd paragraph has one more [opening] brace than closing. + Line 6 - Mismatched curly brackets? + +And again, this balmy} paragraph does it backwards. + Line 8 - Mismatched curly brackets? + +This paragraph[11 has one more (opening) bracket than closing. + Line 10 - Mismatched square brackets? + +Whereas this one is 12]tupsy turvey. + Line 12 - Mismatched square brackets? + +This _very_ important_ paragraph has an odd number of underscores. + Line 14 - Mismatched underscores? + +Unspaced brackets are a[most a]ways _wrong_. + Line 15 column 23 - Unspaced bracket? + +Unspaced brackets are a[most a]ways _wrong_. + Line 15 column 30 - Unspaced bracket?