]> gitweb.factorcode.org Git - factor.git/commitdiff
rocksdb.ffi: Add test file that should have been added.
authorDoug Coleman <doug.coleman@gmail.com>
Tue, 24 Nov 2020 14:50:30 +0000 (08:50 -0600)
committerDoug Coleman <doug.coleman@gmail.com>
Tue, 24 Nov 2020 14:50:30 +0000 (08:50 -0600)
extra/rocksdb/ffi/ffi-tests.factor [new file with mode: 0644]

diff --git a/extra/rocksdb/ffi/ffi-tests.factor b/extra/rocksdb/ffi/ffi-tests.factor
new file mode 100644 (file)
index 0000000..03139c2
--- /dev/null
@@ -0,0 +1,19 @@
+! Copyright (C) 2020 Doug Coleman.
+! See http://factorcode.org/license.txt for BSD license.
+USING: kernel multiline rocksdb.ffi tools.test ;
+IN: rocksdb.ffi.tests
+
+![[
+{ } [
+    rocksdb_restore_options_create
+    rocksdb_restore_options_destroy
+] unit-test
+
+! Added recently, not in homebrew yet
+{ 123 } [
+    rocksdb_writeoptions_create
+    [ 123 rocksdb_writeoptions_set_sync ]
+    [ rocksdb_writeoptions_get_sync ]
+    [ rocksdb_writeoptions_destroy ] tri
+] unit-test
+]]