Add a testcase for dash checks
authorali <ali@juiblex.co.uk>
Tue Feb 14 09:50:08 2012 +0000 (2012-02-14)
changeset 21e58bd1b0b60f
parent 20 411a8e696a47
child 22 52e61d5db08c
Add a testcase for dash checks
test/compatibility/Makefile.am
test/compatibility/dashes.tst
     1.1 --- a/test/compatibility/Makefile.am	Tue Feb 07 08:15:17 2012 +0000
     1.2 +++ b/test/compatibility/Makefile.am	Tue Feb 14 09:50:08 2012 +0000
     1.3 @@ -3,6 +3,7 @@
     1.4  	spaced-doublequote.tst mismatched-quotes.tst he-be.tst digits.tst \
     1.5  	extra-period.tst ellipsis.tst short-line.tst abbreviation.tst \
     1.6  	example.tst non-ascii.tst embedded-lf.tst markup.tst \
     1.7 -	user-defined-typo.tst brackets.tst single-quotes.tst grave-quotes.tst
     1.8 +	user-defined-typo.tst brackets.tst single-quotes.tst grave-quotes.tst \
     1.9 +	dashes.tst
    1.10  
    1.11  dist_pkgdata_DATA=$(TESTS)
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/test/compatibility/dashes.tst	Tue Feb 14 09:50:08 2012 +0000
     2.3 @@ -0,0 +1,25 @@
     2.4 +**************** INPUT ****************
     2.5 +The more the better, I say. The Thistle must have quite a crowd on board-
     2.6 +-if all the Hope students went on that picnic.
     2.7 +
     2.8 +"Oh, Tom, please don't ask me to--ah--lend those socks," pleaded William
     2.9 +Philander, innocently. "They are the only pair of that shade I have, and
    2.10 +the young ladies say----"
    2.11 +
    2.12 +"Wait, Tom. I understand, and I am very, very glad," she said, earnestly.
    2.13 +"But mamma--she is a little bit old- fashioned, you know. She made both
    2.14 +of us--Grace and I--promise not to--to become engaged until we were twenty
    2.15 +or twenty -one."
    2.16 +**************** EXPECTED ****************
    2.17 +
    2.18 +The more the better, I say. The Thistle must have quite a crowd on board-
    2.19 +    Line 1 column 72 - Hyphen at end of line?
    2.20 +
    2.21 +-if all the Hope students went on that picnic.
    2.22 +    Line 2 column 1 - Broken em-dash?
    2.23 +
    2.24 +"But mamma--she is a little bit old- fashioned, you know. She made both
    2.25 +    Line 9 column 36 - Spaced dash?
    2.26 +
    2.27 +or twenty -one."
    2.28 +    Line 11 column 10 - Spaced dash?