]> gitweb.factorcode.org Git - factor.git/commitdiff
forestdb.lib: Add back the forestdb each test.
authorDoug Coleman <doug.coleman@gmail.com>
Thu, 11 Dec 2014 23:02:27 +0000 (15:02 -0800)
committerDoug Coleman <doug.coleman@gmail.com>
Thu, 11 Dec 2014 23:04:18 +0000 (15:04 -0800)
extra/forestdb/lib/lib-tests.factor

index dbf934820d8fe7b143c793eb0fe5eb0cd678b3d6..d0db98eeac21abe851bcd6c2f0006a19c2641bb1 100644 (file)
@@ -351,3 +351,25 @@ IN: forestdb.lib
         [ [ seqnum>> ] [ deleted?>> ] bi 2array ] map
     ] with-forestdb-path
 ] unit-test
+
+{
+    {
+        { 1 "key1" }
+        { 2 "key2" }
+        { 3 "key3" }
+        { 4 "key4" }
+        { 5 "key5" }
+    }
+}
+[
+    delete-test-db-1 test-db-1 [
+        5 set-kv-n
+        fdb-commit-normal
+        [
+           0 10 [
+                [ seqnum>> ]
+                [ [ key>> ] [ keylen>> ] bi alien/length>string ] bi 2array ,
+            ] with-fdb-byseq-each
+        ] { } make
+    ] with-forestdb-path
+] unit-test