Skip to content

Commit

Permalink
Keep the versification comparison.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnml1135 committed Dec 16, 2024
1 parent 71dbcef commit 404d49a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/SIL.Machine.Tests/Corpora/ParallelTextCorpusTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1548,11 +1548,11 @@ public void GetRows_MultipleRowsPerBookWithMismatches()
foreach (var row in rows)
{
var bookId = row.TextId;
var expectedRef = ScriptureRef.Parse($"{bookId} 1:1", versification = ScrVers.Original);
var expectedRef = ScriptureRef.Parse($"{bookId} 1:1");
Assert.That(row.SourceRefs.First, Is.InstanceOf<ScriptureRef>());
Assert.That(expectedRef, Is.InstanceOf<ScriptureRef>());
Assert.That(row.SourceRefs.First, Is.EqualTo(expectedRef)); // Only row 1:1 is valid
Assert.That(row.TargetRefs, Is.EqualTo(new[] { expectedRef }));
Assert.That(expectedRef.CompareTo(row.SourceRefs[0]), Is.EqualTo(0)); // Only row 1:1 is valid
Assert.That(expectedRef.CompareTo(row.TargetRefs[0]), Is.EqualTo(0)); // Only row 1:1 is valid
Assert.That(row.SourceSegment, Is.EqualTo(new[] { "source", "segment", "1", "for", bookId + "." }));
Assert.That(row.TargetSegment, Is.EqualTo(new[] { "target", "segment", "1", "for", bookId + "." }));
Assert.That(row.AlignedWordPairs, Is.EquivalentTo(new[] { new AlignedWordPair(0, 0) }));
Expand Down

0 comments on commit 404d49a

Please sign in to comment.