1.1 --- a/test/compatibility/Makefile.am Tue Feb 14 22:17:03 2012 +0000
1.2 +++ b/test/compatibility/Makefile.am Sat Feb 18 17:08:22 2012 +0000
1.3 @@ -5,6 +5,6 @@
1.4 example.tst non-ascii.tst embedded-lf.tst markup.tst \
1.5 user-defined-typo.tst brackets.tst single-quotes.tst grave-quotes.tst \
1.6 dashes.tst control-characters.tst unusual-characters.tst \
1.7 - windows-1252.tst periods.tst
1.8 + windows-1252.tst periods.tst long-line.tst
1.9
1.10 dist_pkgdata_DATA=$(TESTS)
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2.2 +++ b/test/compatibility/long-line.tst Sat Feb 18 17:08:22 2012 +0000
2.3 @@ -0,0 +1,39 @@
2.4 +**************** ENCODING ****************
2.5 +WINDOWS-1252
2.6 +**************** INPUT ****************
2.7 +Lines up to seventy five columns should be acceptable and shouldn't trigger
2.8 +any kind of warning. At seventy six columns, however, one warning is issued.
2.9 +
2.10 +Les élèves ont mangés leur petit déjeuner avant le commencement de l'école.
2.11 +Les pains au chocolat et les petit brioches sont le choix le plus délicieux.
2.12 +
2.13 +Unfortunately, with two long lines, we need to drivel on for at least
2.14 +twenty lines so that more than ninety per cent of the text consists of
2.15 +non-long lines so that the warnings are not switched off in a misguided
2.16 +attempt at being helpful.
2.17 +
2.18 +“I love to sail the briny deep!
2.19 + The briny deep for me!
2.20 +I love to watch the sunlit waves
2.21 + That brighten up the sea!
2.22 +I love to listen to the wind
2.23 + That fills the snowy sails!
2.24 +I love to roam around the deck----”
2.25 +
2.26 + “And eat the fishes’ tails!”
2.27 +**************** WARNINGS ****************
2.28 +<expected>
2.29 + <error>
2.30 + <at line="2" column="76"/>
2.31 + <text>Long line 76</text>
2.32 + </error>
2.33 + <error>
2.34 + <at line="5" column="76"/>
2.35 + <text>Long line 76</text>
2.36 + </error>
2.37 + <false-positive>
2.38 + <at line="5" column="9"/>
2.39 + <at line="5" column="10"/>
2.40 + <text>Query word au - not reporting duplicates</text>
2.41 + </false-positive>
2.42 +</expected>
3.1 --- a/test/compatibility/short-line.tst Tue Feb 14 22:17:03 2012 +0000
3.2 +++ b/test/compatibility/short-line.tst Sat Feb 18 17:08:22 2012 +0000
3.3 @@ -1,15 +1,37 @@
3.4 **************** INPUT ****************
3.5 The second line of a paragraph isn't usually short at all
3.6 -and
3.7 -should be flagged as a warning by gutcheck as long as there
3.8 -are sufficient numbers of lines in the file to stop it deciding
3.9 -that there are too many short lines to bother reporting, which
3.10 -means that I have to waffle on until we have at least 10 lines
3.11 -of text.
3.12 +and should be flagged as a warning by gutcheck as long
3.13 +as there are sufficient numbers of lines in the file to
3.14 +stop it deciding that there are too many short lines to bother
3.15 +reporting, which means that I have to waffle on until we have
3.16 +at least 10 lines of text.
3.17
3.18 The last line of a paragraph, however many lines it contains,
3.19 is usually short.
3.20 +
3.21 +Even the last line of a paragraph shouldn't consist of only a single
3.22 +character, since that tends to indicate that the line wrapping may
3.23 +be fault
3.24 +y
3.25 +
3.26 +Contrawise, digits and characters which might be roman numbers are fine:
3.27 +
3.28 +2
3.29 +
3.30 +9
3.31 +
3.32 +I
3.33 +
3.34 +V
3.35 +
3.36 +X
3.37 +
3.38 +L
3.39 +
3.40 **************** EXPECTED ****************
3.41
3.42 -and
3.43 - Line 2 column 3 - Short line 3?
3.44 +and should be flagged as a warning by gutcheck as long
3.45 + Line 2 column 54 - Short line 54?
3.46 +
3.47 +y
3.48 + Line 14 column 1 - Query single character line