Skip to content

Commit

Permalink
test: Add test for abbreviations that start with brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
kesara committed Jan 23, 2025
1 parent 218f628 commit 1de96ab
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 4 deletions.
2 changes: 2 additions & 0 deletions tests/input/abbreviations.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<t>Various abbreviations which aren't end of sentence:
Jr. AND Sr. AND i.e. AND Mr. AND Mrs. etc. -- done. Start of next sentence.
Sentence with parentheses (a.k.a. Round brackets) -- done. Start of next sentence.
Sentence with brackets [i.e. Square brackets] -- done. Start of next sentence.
</t>
2 changes: 1 addition & 1 deletion tests/valid/abbreviations.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<p>Various abbreviations which aren't end of sentence: Jr. AND Sr. AND i.e. AND Mr. AND Mrs. etc. -- done. Start of next sentence. </p>
<p>Various abbreviations which aren't end of sentence: Jr. AND Sr. AND i.e. AND Mr. AND Mrs. etc. -- done. Start of next sentence. Sentence with parentheses (a.k.a. Round brackets) -- done. Start of next sentence. Sentence with brackets [i.e. Square brackets] -- done. Start of next sentence. </p>
5 changes: 4 additions & 1 deletion tests/valid/abbreviations.nroff
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
.in 3

Various abbreviations which aren't end of sentence: Jr. AND Sr. AND
i.e. AND Mr. AND Mrs. etc. \%-- done. Start of next sentence.
i.e. AND Mr. AND Mrs. etc. \%-- done. Start of next sentence.
Sentence with parentheses (a.k.a. Round brackets) \%-- done. Start of
next sentence. Sentence with brackets [i.e. Square brackets] \%--
done. Start of next sentence.
5 changes: 4 additions & 1 deletion tests/valid/abbreviations.raw.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
Various abbreviations which aren't end of sentence: Jr. AND Sr. AND
i.e. AND Mr. AND Mrs. etc. -- done. Start of next sentence.
i.e. AND Mr. AND Mrs. etc. -- done. Start of next sentence.
Sentence with parentheses (a.k.a. Round brackets) -- done. Start of
next sentence. Sentence with brackets [i.e. Square brackets] --
done. Start of next sentence.
5 changes: 4 additions & 1 deletion tests/valid/abbreviations.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
Various abbreviations which aren't end of sentence: Jr. AND Sr. AND
i.e. AND Mr. AND Mrs. etc. -- done. Start of next sentence.
i.e. AND Mr. AND Mrs. etc. -- done. Start of next sentence.
Sentence with parentheses (a.k.a. Round brackets) -- done. Start of
next sentence. Sentence with brackets [i.e. Square brackets] --
done. Start of next sentence.

0 comments on commit 1de96ab

Please sign in to comment.