Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions tests/parser_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,3 +312,18 @@ def test_book_abbreviations() -> None:

if book != book.SONG_OF_SONGS:
assert expected == actual_period


def test_multiple_references_with_prefixes() -> None:
# Given an input string containing multiple references with prefixes,
# separated by commas
input_string = "1 Corinthians 1:1, 2 Corinthians 1:1"

# When we parse the references from that string
references = bible.get_references(input_string)

# Then we get the expected references
assert references == [
bible.NormalizedReference(bible.Book.CORINTHIANS_1, 1, 1, 1, 1),
bible.NormalizedReference(bible.Book.CORINTHIANS_2, 1, 1, 1, 1),
]