[sword-svn] r2507 - in trunk/tests: . testsuite
scribe at crosswire.org
scribe at crosswire.org
Sat Mar 20 06:43:42 MST 2010
Author: scribe
Date: 2010-03-20 06:43:42 -0700 (Sat, 20 Mar 2010)
New Revision: 2507
Modified:
trunk/tests/testsuite/versekeytest.good
trunk/tests/versekeytest.cpp
Log:
Added test case for VerseKey::Book(.Book() - 1)
Modified: trunk/tests/testsuite/versekeytest.good
===================================================================
--- trunk/tests/testsuite/versekeytest.good 2010-03-20 11:49:54 UTC (rev 2506)
+++ trunk/tests/testsuite/versekeytest.good 2010-03-20 13:43:42 UTC (rev 2507)
@@ -41,3 +41,8 @@
John 3:16: 0
I Samuel 1:1: Chapter() - 1: Ruth 4:22
+Book math
+
+Matthew.1.1-- = Malachi 4:6
+++ = Matthew 1:1
+.Book(.Book() - 1) = Malachi 1:1
Modified: trunk/tests/versekeytest.cpp
===================================================================
--- trunk/tests/versekeytest.cpp 2010-03-20 11:49:54 UTC (rev 2506)
+++ trunk/tests/versekeytest.cpp 2010-03-20 13:43:42 UTC (rev 2507)
@@ -219,6 +219,15 @@
cout << tmpkey << ": Chapter() - 1: " << vkey << endl;
+ cout << "\nBook math\n\n";
+ vkey = "Matthew.1.1";
+ vkey--;
+ cout << "Matthew.1.1-- = " << vkey << "\n";
+ vkey++;
+ cout << "++ = " << vkey << "\n";
+ vkey.Book(vkey.Book() - 1);
+ cout << ".Book(.Book() - 1) = " << vkey << "\n";
+
return 0;
}
More information about the sword-cvs
mailing list