[sword-svn] r2799 - trunk/tests
scribe at crosswire.org
scribe at crosswire.org
Wed May 8 11:34:22 MST 2013
Author: scribe
Date: 2013-05-08 11:34:22 -0700 (Wed, 08 May 2013)
New Revision: 2799
Modified:
trunk/tests/osistest.cpp
Log:
Updated to include whitespace tests
Modified: trunk/tests/osistest.cpp
===================================================================
--- trunk/tests/osistest.cpp 2013-04-15 13:52:33 UTC (rev 2798)
+++ trunk/tests/osistest.cpp 2013-05-08 18:34:22 UTC (rev 2799)
@@ -3,6 +3,7 @@
#include <swmgr.h>
#include <markupfiltmgr.h>
#include <swmodule.h>
+#include <versekey.h>
using namespace std;
using namespace sword;
@@ -56,5 +57,27 @@
module->setKey("Mark.1.14");
outputCurrentVerse(module);
+
+ cout << "\nWhitespace tests around headings:\n";
+ ((VerseKey *)module->getKey())->setIntros(true);
+ *module = TOP;
+ // module heading
+ cout << module->renderText() << "\n";
+ (*module)++;
+ // testament heading
+ cout << module->renderText() << "\n";
+ (*module)++;
+ // book heading
+ cout << module->renderText() << "\n";
+ (*module)++;
+ // chapter heading
+ cout << module->renderText() << "\n";
+ (*module)++;
+ // verse body
+ cout << "[ " << module->getKeyText() << " ] " << module->renderText() << "\n";
+ (*module)++;
+ // verse body
+ cout << "[ " << module->getKeyText() << " ] " << module->renderText() << "\n";
+
return 0;
}
More information about the sword-cvs
mailing list