mirror of
https://github.com/kennethreitz/kjvstudy.org.git
synced 2026-06-05 23:00:16 +00:00
Add tests for VerseReference parsing functionality
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
def test_verse_references():
|
||||
from kjv import VerseReference
|
||||
|
||||
# Test the parsing of a verse reference string
|
||||
assert VerseReference.from_string("Genesis 1:1") == VerseReference(
|
||||
book="Genesis", chapter=1, verse=1
|
||||
)
|
||||
assert VerseReference.from_string("I Corinthians 1:1") == VerseReference(
|
||||
book="I Corinthians", chapter=1, verse=1
|
||||
)
|
||||
assert VerseReference.from_string("John 3:16") == VerseReference(
|
||||
book="John", chapter=3, verse=16
|
||||
)
|
||||
assert VerseReference.from_string("Matthew 5:14") == VerseReference(
|
||||
book="Matthew", chapter=5, verse=14
|
||||
)
|
||||
Reference in New Issue
Block a user