test/bookloupe/partial-underlining.tst
changeset 214 43c73b36e936
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/test/bookloupe/partial-underlining.tst	Sat Nov 02 09:03:54 2013 +0000
     1.3 @@ -0,0 +1,45 @@
     1.4 +**************** INPUT ****************
     1.5 +Bookloupe understands simple underlining, for example, a _bd_ word as
     1.6 +well as old-school underlining, for example, _a_pr_word_.
     1.7 +
     1.8 +It also understands partial underlining, as in l'_Adthima_, Abag_ae_l,
     1.9 +_ph_antasm, and even _ph_antasi_z_e.
    1.10 +
    1.11 +While warnings about missing spaces around underscores are generally
    1.12 +suppressed, partial underlining with_an odd number of un_der_scor_es
    1.13 +will still be warned about.
    1.14 +
    1.15 +Then just a couple of special cases we need to check for: first _simple_
    1.16 +underlining with an underscore at the end of the line and a solitary _
    1.17 +should both be handled correctly.
    1.18 +**************** WARNINGS ****************
    1.19 +<expected>
    1.20 +  <error>
    1.21 +    <at line="1" column="57"/>
    1.22 +    <text>Query word bd - not reporting duplicates</text>
    1.23 +  </error>
    1.24 +  <error>
    1.25 +    <at line="2" column="48"/>
    1.26 +    <text>Query word pr - not reporting duplicates</text>
    1.27 +  </error>
    1.28 +  <error>
    1.29 +    <at line="8" column="37"/>
    1.30 +    <text>Missing space or underscore?</text>
    1.31 +  </error>
    1.32 +  <error>
    1.33 +    <at line="8" column="66"/>
    1.34 +    <text>Missing space or underscore?</text>
    1.35 +  </error>
    1.36 +  <error>
    1.37 +    <at line="12" column="70"/>
    1.38 +    <text>Missing space or underscore?</text>
    1.39 +  </error>
    1.40 +  <error>
    1.41 +    <at line="12" column="70"/>
    1.42 +    <text>Spaced punctuation?</text>
    1.43 +  </error>
    1.44 +  <error>
    1.45 +    <at line="14"/>
    1.46 +    <text>Mismatched underscores?</text>
    1.47 +  </error>
    1.48 +</expected>