# HG changeset patch # User ali # Date 1328572548 0 # Node ID 6faf1a95a207aa628bd55307a4464d9262e3d0e5 # Parent 2c88fd553e5d0bea53df93e6a2cc8eb3835f0cba Add testcases for single quotes diff -r 2c88fd553e5d -r 6faf1a95a207 test/compatibility/Makefile.am --- a/test/compatibility/Makefile.am Mon Feb 06 23:55:27 2012 +0000 +++ b/test/compatibility/Makefile.am Mon Feb 06 23:55:48 2012 +0000 @@ -3,6 +3,6 @@ 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 + user-defined-typo.tst brackets.tst single-quotes.tst grave-quotes.tst dist_pkgdata_DATA=$(TESTS) diff -r 2c88fd553e5d -r 6faf1a95a207 test/compatibility/grave-quotes.tst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/compatibility/grave-quotes.tst Mon Feb 06 23:55:48 2012 +0000 @@ -0,0 +1,11 @@ +**************** INPUT **************** +` Now you should start for school,' Margaret said. + +`In a moment,' Peter replied, ` I'm just coming.' +**************** EXPECTED **************** + +` Now you should start for school,' Margaret said. + Line 1 column 1 - Spaced quote? + +`In a moment,' Peter replied, ` I'm just coming.' + Line 3 column 30 - Spaced singlequote? diff -r 2c88fd553e5d -r 6faf1a95a207 test/compatibility/single-quotes.tst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/compatibility/single-quotes.tst Mon Feb 06 23:55:48 2012 +0000 @@ -0,0 +1,53 @@ +**************** OPTIONS **************** +-s +**************** INPUT **************** +'Now you should start for school, ' Margaret said. + +'In a moment,' Peter replied,' I'm just coming.' + +'Come on,'shouted Jane. + +'Alright,' said Peter, 'Keep your hair on. +' He looked down as he came round the corner. +'Where's my coat? ' + +'Underneath the girls' scarves.' said his mother. +**************** WARNINGS **************** + + + + Spaced singlequote? + + + + Wrongspaced singlequotes? + + + + Mismatched singlequotes? + + + + Wrongspaced singlequotes? + + + + Mismatched singlequotes? + + + + Spaced quote? + + + + Spaced quote? + + + + Mismatched singlequotes? + + + + Wrongspaced singlequotes? + +