~ubuntu-branches/debian/squeeze/sword/squeeze

« back to all changes in this revision

Viewing changes to tests/lextest.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Glassey
  • Date: 2004-01-15 15:50:07 UTC
  • Revision ID: james.westby@ubuntu.com-20040115155007-n9mz4x0zxrs1isd3
Tags: upstream-1.5.7
ImportĀ upstreamĀ versionĀ 1.5.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include <iostream>
 
2
#include <rawld.h>
 
3
#ifndef NO_SWORD_NAMESPACE
 
4
using namespace sword;
 
5
#endif
 
6
 
 
7
int main(int argc, char **argv)
 
8
{
 
9
        RawLD::createModule("tmp/lextest");
 
10
        RawLD lex("tmp/lextest");
 
11
 
 
12
        lex.setKey("b");
 
13
        lex << "x";
 
14
 
 
15
        lex.setKey("a");
 
16
        lex << "x";
 
17
 
 
18
        lex.setKey("a");
 
19
        lex.deleteEntry();
 
20
 
 
21
//      lex.setKey("a");
 
22
//      lex << "y";
 
23
 
 
24
        lex = BOTTOM;
 
25
        return 0;
 
26
}