diff options
Diffstat (limited to 'tests/modtest.cpp')
-rw-r--r-- | tests/modtest.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/modtest.cpp b/tests/modtest.cpp new file mode 100644 index 0000000..889d780 --- /dev/null +++ b/tests/modtest.cpp @@ -0,0 +1,21 @@ +#include <swmgr.h> +#include <swtext.h> +#include <versekey.h> +#include <iostream> +#ifndef NO_SWORD_NAMESPACE +using namespace sword; +#endif + +int main(int argc, char **argv) { + SWMgr mymgr; + ModMap::iterator it; + SWModule *module = mymgr.Modules["KJV"]; + VerseKey parser; + ListKey lk = parser.ParseVerseList("mal4:6-rev", parser, true); + lk.Persist(1); + module->SetKey(lk); + + (*module) = TOP; + std::cout << module->KeyText() << "\n"; + return 0; +} |