Add testcase for checks around periods
authorali <ali@juiblex.co.uk>
Tue Feb 14 22:17:03 2012 +0000 (2012-02-14)
changeset 2338ea5c71f04f
parent 22 52e61d5db08c
child 24 adf633a3ae6f
Add testcase for checks around periods
test/compatibility/Makefile.am
test/compatibility/periods.tst
     1.1 --- a/test/compatibility/Makefile.am	Tue Feb 14 19:31:55 2012 +0000
     1.2 +++ b/test/compatibility/Makefile.am	Tue Feb 14 22:17:03 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
     1.8 +	windows-1252.tst periods.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/periods.tst	Tue Feb 14 22:17:03 2012 +0000
     2.3 @@ -0,0 +1,37 @@
     2.4 +**************** INPUT ****************
     2.5 +"Say, it took more than two minutes to deliver that book," remarked Dick
     2.6 +. "We were just getting ready to go on without you."
     2.7 +
     2.8 +Common abbreviations shouldn't be warned about. Mr. and Mrs. are used for
     2.9 +individuals, as is Dr. and Mssrs. is used for a number of people. MSS. is
    2.10 +an abbreviation of manuscripts, whereas st. and lb. (and its plural lbs.)
    2.11 +are weights and ft. is for feet.
    2.12 +
    2.13 +In more scholarly work, we have pp. for pages, cf. for confer (compare),
    2.14 +vs. for verses, vol. for volume (and its plural vols.), ed. for edition,
    2.15 +viz. for videlicet (that is), op. cit. for opus citatum est (already
    2.16 +cited), and chap. for chapter.
    2.17 +
    2.18 +In mathematics, we come across deg. for degrees and min. for minutes. When
    2.19 +we turn to business, we might meet ltd. for limited and cent. and its
    2.20 +plural cents. for centum (hundred).
    2.21 +
    2.22 +In more general usage, we have pm. for post meridiem (afternoon) and etc.
    2.23 +for et cetera (and others).
    2.24 +
    2.25 +If we coin our own abbreviatn. then we should be warned about it exactly
    2.26 +once, no matter how many times that abbreviatn. is used.
    2.27 +
    2.28 +Acronyms like M.P. shouldn't generate any warnings, unless we get confused
    2.29 +and write M .P. by mistake.
    2.30 +
    2.31 +**************** EXPECTED ****************
    2.32 +
    2.33 +. "We were just getting ready to go on without you."
    2.34 +    Line 2 column 1 - Begins with punctuation?
    2.35 +
    2.36 +If we coin our own abbreviatn. then we should be warned about it exactly
    2.37 +    Line 21 column 30 - Extra period?
    2.38 +
    2.39 +and write M .P. by mistake.
    2.40 +    Line 25 column 13 - Spaced punctuation?