aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lextest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lextest.cpp')
-rw-r--r--tests/lextest.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/lextest.cpp b/tests/lextest.cpp
new file mode 100644
index 0000000..72beea0
--- /dev/null
+++ b/tests/lextest.cpp
@@ -0,0 +1,22 @@
+#include <iostream>
+#include <rawld.h>
+
+void main(int argc, char **argv)
+{
+ RawLD::createModule("tmp/lextest");
+ RawLD lex("tmp/lextest");
+
+ lex.SetKey("b");
+ lex << "x";
+
+ lex.SetKey("a");
+ lex << "x";
+
+ lex.SetKey("a");
+ lex.deleteEntry();
+
+// lex.SetKey("a");
+// lex << "y";
+
+ lex = BOTTOM;
+}