[sword-svn] r3305 - trunk/tests

charcoal at crosswire.org charcoal at crosswire.org
Sun Dec 14 19:02:48 MST 2014


Author: charcoal
Date: 2014-12-14 19:02:48 -0700 (Sun, 14 Dec 2014)
New Revision: 3305

Modified:
   trunk/tests/versekeytest.cpp
Log:
versekeytest.cpp: additional tests for cross-testament chapter/verse math.

Modified: trunk/tests/versekeytest.cpp
===================================================================
--- trunk/tests/versekeytest.cpp	2014-12-11 05:25:47 UTC (rev 3304)
+++ trunk/tests/versekeytest.cpp	2014-12-15 02:02:48 UTC (rev 3305)
@@ -277,5 +277,19 @@
 	vkey.setBook(vkey.getBook() - 1);
 	cout << ".setBook(.getBook() - 1) = " << vkey << "\n";
 
+	cout << "\nChapter math\n\n";
+
+	cout << "Matthew.1.1 - 1 chapter\n";
+	vkey = "Matthew.1.1";
+	vkey.setChapter(vkey.getChapter() - 1);
+	cout << ".setChapter(.getChapter() - 1) = " << vkey << "\n";
+
+	cout << "\nVerse math\n\n";
+
+	cout << "Matthew.1.1 - 1 verse\n";
+	vkey = "Matthew.1.1";
+	vkey.setVerse(vkey.getVerse() - 1);
+	cout << ".setVerse(.getVerse() - 1) = " << vkey << "\n";
+
 	return 0;
 }




More information about the sword-cvs mailing list