# HG changeset patch # User ali # Date 1329213008 0 # Node ID e58bd1b0b60f956a4577c56b326c5bc7142ae21d # Parent 411a8e696a477619b2f15f1cd60e879be3378068 Add a testcase for dash checks diff -r 411a8e696a47 -r e58bd1b0b60f test/compatibility/Makefile.am --- a/test/compatibility/Makefile.am Tue Feb 07 08:15:17 2012 +0000 +++ b/test/compatibility/Makefile.am Tue Feb 14 09:50:08 2012 +0000 @@ -3,6 +3,7 @@ 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 brackets.tst single-quotes.tst grave-quotes.tst + user-defined-typo.tst brackets.tst single-quotes.tst grave-quotes.tst \ + dashes.tst dist_pkgdata_DATA=$(TESTS) diff -r 411a8e696a47 -r e58bd1b0b60f test/compatibility/dashes.tst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/compatibility/dashes.tst Tue Feb 14 09:50:08 2012 +0000 @@ -0,0 +1,25 @@ +**************** INPUT **************** +The more the better, I say. The Thistle must have quite a crowd on board- +-if all the Hope students went on that picnic. + +"Oh, Tom, please don't ask me to--ah--lend those socks," pleaded William +Philander, innocently. "They are the only pair of that shade I have, and +the young ladies say----" + +"Wait, Tom. I understand, and I am very, very glad," she said, earnestly. +"But mamma--she is a little bit old- fashioned, you know. She made both +of us--Grace and I--promise not to--to become engaged until we were twenty +or twenty -one." +**************** EXPECTED **************** + +The more the better, I say. The Thistle must have quite a crowd on board- + Line 1 column 72 - Hyphen at end of line? + +-if all the Hope students went on that picnic. + Line 2 column 1 - Broken em-dash? + +"But mamma--she is a little bit old- fashioned, you know. She made both + Line 9 column 36 - Spaced dash? + +or twenty -one." + Line 11 column 10 - Spaced dash?