Skip to content

Commit

Permalink
Made some more specific asserts in the tests for
Browse files Browse the repository at this point in the history
investigate_alignment_deuterocanonical_books
  • Loading branch information
mudiagaobrikisil committed Feb 19, 2025
1 parent e193846 commit 7bb77f4
Show file tree
Hide file tree
Showing 2 changed files with 303 additions and 163 deletions.
11 changes: 1 addition & 10 deletions tests/SIL.Machine.Tests/Corpora/CorporaTestHelpers.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.IO.Compression;
using System.Text.RegularExpressions;
using NUnit.Framework.Constraints;
using SIL.Scripture;

Expand Down Expand Up @@ -138,7 +137,7 @@ public static Dictionary<string, string> ExpandVerseMappings(Dictionary<string,
return expandedMappings;
}

public static (string Book, int Chapter, int StartVerse, int EndVerse, bool IsSingleVerse) ParseRange(string range)
private static (string Book, int Chapter, int StartVerse, int EndVerse, bool IsSingleVerse) ParseRange(string range)
{
var parts = range.Split(' ');
var book = parts[0];
Expand Down Expand Up @@ -167,12 +166,4 @@ public static string CleanString(string input, string[] unwanted)
}
return input;
}

/// <summary>
/// Replace multiple spaces with a single space.
/// </summary>
public static string NormalizeSpaces(string input)
{
return Regex.Replace(input, @"\s+", " ");
}
}
Loading

0 comments on commit 7bb77f4

Please # to comment.