[sword-svn] r2347 - in trunk/tests: . testsuite
scribe at crosswire.org
scribe at crosswire.org
Sun Apr 26 19:50:16 MST 2009
Author: scribe
Date: 2009-04-26 19:50:16 -0700 (Sun, 26 Apr 2009)
New Revision: 2347
Modified:
trunk/tests/testsuite/versekeytest.good
trunk/tests/versekeytest.cpp
Log:
added test for listkey single or multiple which tests ++prefix operator (it works, good!)
Modified: trunk/tests/testsuite/versekeytest.good
===================================================================
--- trunk/tests/testsuite/versekeytest.good 2009-04-27 01:53:58 UTC (rev 2346)
+++ trunk/tests/testsuite/versekeytest.good 2009-04-27 02:50:16 UTC (rev 2347)
@@ -1,3 +1,5 @@
+single
+multiple
x: Amos 1:5
Amos 1:5
Amos 1:5
Modified: trunk/tests/versekeytest.cpp
===================================================================
--- trunk/tests/versekeytest.cpp 2009-04-27 01:53:58 UTC (rev 2346)
+++ trunk/tests/versekeytest.cpp 2009-04-27 02:50:16 UTC (rev 2347)
@@ -45,8 +45,16 @@
*/
VerseKey *parser = new VerseKey(); //(VerseKey *)mod->CreateKey();
- ListKey scope = parser->ParseVerseList("amos", *parser, true);
+ ListKey scope = parser->ParseVerseList("amos 2:2", *parser, true);
+ cout << ((scope++ == scope) ? "single" : "multiple") << "\n";
+
+ scope = parser->ParseVerseList("amos", *parser, true);
+
+ cout << ((scope++ == scope) ? "single" : "multiple") << "\n";
+
+ scope = parser->ParseVerseList("amos", *parser, true);
+
ListKey result;
scope++;
More information about the sword-cvs
mailing list