Skip to content

Commit

Permalink
✅ add test for sentences with Mr.
Browse files Browse the repository at this point in the history
  • Loading branch information
astoilkov committed Jul 26, 2024
1 parent 6176014 commit 9e2d632
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/sentences.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
]);
});
});
});

0 comments on commit 9e2d632

Please sign in to comment.