File: test_db.ml

package info (click to toggle)
ocaml-sqlite3 5.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 344 kB
  • sloc: ansic: 1,396; ml: 1,248; makefile: 34
file content (11 lines) | stat: -rw-r--r-- 211 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
open Sqlite3

let%test "test_db" =
  for _ = 1 to 1000 do
    let db = db_open "t_db" in
    Gc.full_major ();
    let _ = db_close db in
    ()
  done;
  print_endline "Able to open and close database";
  true