Add testcases for single quotes
authorali <ali@juiblex.co.uk>
Mon Feb 06 23:55:48 2012 +0000 (2012-02-06)
changeset 186faf1a95a207
parent 17 2c88fd553e5d
child 19 05d082ebf685
Add testcases for single quotes
test/compatibility/Makefile.am
test/compatibility/grave-quotes.tst
test/compatibility/single-quotes.tst
     1.1 --- a/test/compatibility/Makefile.am	Mon Feb 06 23:55:27 2012 +0000
     1.2 +++ b/test/compatibility/Makefile.am	Mon Feb 06 23:55:48 2012 +0000
     1.3 @@ -3,6 +3,6 @@
     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
     1.8 +	user-defined-typo.tst brackets.tst single-quotes.tst grave-quotes.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/grave-quotes.tst	Mon Feb 06 23:55:48 2012 +0000
     2.3 @@ -0,0 +1,11 @@
     2.4 +**************** INPUT ****************
     2.5 +` Now you should start for school,' Margaret said.
     2.6 +
     2.7 +`In a moment,' Peter replied, ` I'm just coming.'
     2.8 +**************** EXPECTED ****************
     2.9 +
    2.10 +` Now you should start for school,' Margaret said.
    2.11 +    Line 1 column 1 - Spaced quote?
    2.12 +
    2.13 +`In a moment,' Peter replied, ` I'm just coming.'
    2.14 +    Line 3 column 30 - Spaced singlequote?
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/test/compatibility/single-quotes.tst	Mon Feb 06 23:55:48 2012 +0000
     3.3 @@ -0,0 +1,53 @@
     3.4 +**************** OPTIONS ****************
     3.5 +-s
     3.6 +**************** INPUT ****************
     3.7 +'Now you should start for school, ' Margaret said.
     3.8 +
     3.9 +'In a moment,' Peter replied,' I'm just coming.'
    3.10 +
    3.11 +'Come on,'shouted Jane.
    3.12 +
    3.13 +'Alright,' said Peter, 'Keep your hair on.
    3.14 +' He looked down as he came round the corner.
    3.15 +'Where's my coat? '
    3.16 +
    3.17 +'Underneath the girls' scarves.' said his mother.
    3.18 +**************** WARNINGS ****************
    3.19 +<expected>
    3.20 +  <error>
    3.21 +    <at line="1" column="34"/>
    3.22 +    <text>Spaced singlequote?</text>
    3.23 +  </error>
    3.24 +  <error>
    3.25 +    <at line="3" column="30"/>
    3.26 +    <text>Wrongspaced singlequotes?</text>
    3.27 +  </error>
    3.28 +  <false-positive>
    3.29 +    <at line="4"/>
    3.30 +    <text>Mismatched singlequotes?</text>
    3.31 +  </false-positive>
    3.32 +  <error>
    3.33 +    <at line="5" column="10"/>
    3.34 +    <text>Wrongspaced singlequotes?</text>
    3.35 +  </error>
    3.36 +  <false-positive>
    3.37 +    <at line="6"/>
    3.38 +    <text>Mismatched singlequotes?</text>
    3.39 +  </false-positive>
    3.40 +  <error>
    3.41 +    <at line="8" column="1"/>
    3.42 +    <text>Spaced quote?</text>
    3.43 +  </error>
    3.44 +  <error>
    3.45 +    <at line="9" column="19"/>
    3.46 +    <text>Spaced quote?</text>
    3.47 +  </error>
    3.48 +  <false-positive>
    3.49 +    <at line="10"/>
    3.50 +    <text>Mismatched singlequotes?</text>
    3.51 +  </false-positive>
    3.52 +  <false-positive>
    3.53 +    <at line="11" column="32"/>
    3.54 +    <text>Wrongspaced singlequotes?</text>
    3.55 +  </false-positive>
    3.56 +</expected>