From 9e2d6323b68c998919ffa17711cde9f00f19508b Mon Sep 17 00:00:00 2001 From: Antonio Stoilkov Date: Fri, 26 Jul 2024 18:08:06 +0300 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20add=20test=20for=20sentences=20with?= =?UTF-8?q?=20Mr.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/sentences.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/sentences.ts b/test/sentences.ts index 4b7a6a7..47eaa55 100644 --- a/test/sentences.ts +++ b/test/sentences.ts @@ -22,5 +22,16 @@ describe("segmenter", () => { "What are you doing today?", ]); }); + + test("sentences() with Mr.", () => { + expect( + sentences( + "I went to Dr. Smith's office, and then I went to the store.", + ), + ).toEqual([ + "I went to Dr. ", + "Smith's office, and then I went to the store.", + ]); + }); }); });