From 3af6b0cb80be974079a4f723b8c1dfa2128f9d41 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 9 Feb 2021 16:38:19 -0500 Subject: Fixed bug accessing last chapter of a book --- testLibbible.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'testLibbible.cc') diff --git a/testLibbible.cc b/testLibbible.cc index 20ff7d9..d3a265a 100644 --- a/testLibbible.cc +++ b/testLibbible.cc @@ -186,6 +186,9 @@ void TestLibbible::testGetText(void) { pair(15, 4), pair(15, 5)}); CPPUNIT_ASSERT(chapVerses == shouldContain); + + text = libbible::getText(libbible::getPassage("KJV", "John 21")); + CPPUNIT_ASSERT(text.back().verse == 25); } void TestLibbible::testSettings(void) { -- cgit v1.2.3