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 =