[sword-svn] r2127 - trunk/tests

scribe at www.crosswire.org scribe at www.crosswire.org
Sat Dec 29 16:26:01 MST 2007


Author: scribe
Date: 2007-12-29 16:26:01 -0700 (Sat, 29 Dec 2007)
New Revision: 2127

Modified:
   trunk/tests/versekeytest.cpp
Log:
added new test to check bounds functionality


Modified: trunk/tests/versekeytest.cpp
===================================================================
--- trunk/tests/versekeytest.cpp	2007-12-29 22:45:59 UTC (rev 2126)
+++ trunk/tests/versekeytest.cpp	2007-12-29 23:26:01 UTC (rev 2127)
@@ -34,5 +34,17 @@
 
 	std::cout << result.getText() << "\n";
 
+     const char *bounds = "lk,acts";
+     scope = parser.ParseVerseList(bounds, parser, true);
+
+     x = "1Sam.21.1";
+     scope = x;
+//     if (scope == x) std::cout << "Error restricting bounds: " << x.getText() << " is in " << bounds << "\n";
+     if (!scope.Error()) std::cout << "Error restricting bounds: " << x.getText() << " is in " << bounds << "\n";
+
+     x = "Is.1.13";
+     scope = x;
+     if (!scope.Error()) std::cout << "Error restricting bounds: " << x.getText() << " is in " << bounds << "\n";
+
 	return 0;
 }




More information about the sword-cvs mailing list