From 64dc9dd63442ac418b0ac8fc98b3cc7ad8f6175c Mon Sep 17 00:00:00 2001 From: John Lambert Date: Mon, 23 Dec 2024 11:43:04 -0500 Subject: [PATCH] Repeatable test for: https://github.com/sillsdev/serval/issues/589 --- .../Corpora/UsfmMemoryTextTests.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/SIL.Machine.Tests/Corpora/UsfmMemoryTextTests.cs b/tests/SIL.Machine.Tests/Corpora/UsfmMemoryTextTests.cs index cab64288..61fcd622 100644 --- a/tests/SIL.Machine.Tests/Corpora/UsfmMemoryTextTests.cs +++ b/tests/SIL.Machine.Tests/Corpora/UsfmMemoryTextTests.cs @@ -204,6 +204,20 @@ public void GetRows_OptBreak_OutsideOfSegment() }); } + [Test] + public void GetRows_VeryOddVerse() + { + TextRow[] rows = GetRows( + @"\id MAT - Test +\c 1 +1 This is the 1\v 00 verse. +", + includeAllText: true, + includeMarkers: true + ); + // If it gets this far, it's not throwing an exception. + } + private static TextRow[] GetRows(string usfm, bool includeMarkers = false, bool includeAllText = false) { UsfmMemoryText text =