From 1de96ab2b1ab3e1926a1c5a19b90d4fe458915d7 Mon Sep 17 00:00:00 2001 From: Kesara Rathnayake Date: Thu, 23 Jan 2025 15:35:28 +1300 Subject: [PATCH] test: Add test for abbreviations that start with brackets --- tests/input/abbreviations.xml | 2 ++ tests/valid/abbreviations.html | 2 +- tests/valid/abbreviations.nroff | 5 ++++- tests/valid/abbreviations.raw.txt | 5 ++++- tests/valid/abbreviations.txt | 5 ++++- 5 files changed, 15 insertions(+), 4 deletions(-) diff --git a/tests/input/abbreviations.xml b/tests/input/abbreviations.xml index 7f75835ce..44000d70e 100644 --- a/tests/input/abbreviations.xml +++ b/tests/input/abbreviations.xml @@ -1,3 +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. + 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. diff --git a/tests/valid/abbreviations.html b/tests/valid/abbreviations.html index 11b55e73a..ed0482ed3 100644 --- a/tests/valid/abbreviations.html +++ b/tests/valid/abbreviations.html @@ -1 +1 @@ -

Various abbreviations which aren't end of sentence: Jr. AND Sr. AND i.e. AND Mr. AND Mrs. etc. -- done. Start of next sentence.

+

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.

diff --git a/tests/valid/abbreviations.nroff b/tests/valid/abbreviations.nroff index 7b4e0d21d..b1833ef8a 100644 --- a/tests/valid/abbreviations.nroff +++ b/tests/valid/abbreviations.nroff @@ -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. \ No newline at end of file +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. \ No newline at end of file diff --git a/tests/valid/abbreviations.raw.txt b/tests/valid/abbreviations.raw.txt index d9af80840..023bbc67c 100644 --- a/tests/valid/abbreviations.raw.txt +++ b/tests/valid/abbreviations.raw.txt @@ -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. \ No newline at end of file + 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. \ No newline at end of file diff --git a/tests/valid/abbreviations.txt b/tests/valid/abbreviations.txt index d9af80840..023bbc67c 100644 --- a/tests/valid/abbreviations.txt +++ b/tests/valid/abbreviations.txt @@ -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. \ No newline at end of file + 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. \ No newline at end of file