Skip to content

Unexpected behavior when changing the versification of a verse range #416

@Enkidu93

Description

@Enkidu93

When you change the versification of a verse ref using VerseRef.ChangeVersification() which contains a verse range and that verse range's verses map to verses in different chapters in the new versification, the changed VerseRef is not what you'd expect. Here's an example:

// English vs. Original
// NUM 16:36-50 = NUM 17:1-15
// NUM 17:1-13 = NUM 17:16-28
var verseRef = new VerseRef("NUM 17:15-17", ScrVers.Original);
verseRef.ChangeVersification(ScrVers.English);
verseRef.ToString() == "NUM 16:50-2"; //true

Basically, VerseRef cannot handle cross-chapter ranges, so it exhibits unusual behavior when the verse ref in the new versification would need to have cross-chapter ranges.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No fields configured for Bug.

Projects

Status
🏗 In progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions