aboutsummaryrefslogtreecommitdiff
path: root/tests/sql_trim.ml
blob: dfa29e17a7128b4f645535c6f8f87cc821d82567 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
open Test_migration

let check = Alcotest.check Test_migration.sql_testable

let test_suit =
  [
    ( "Trim" >:: fun _ ->
      let text = Sqlite3.Data.TEXT "  \nABC \n" in

      check "trim" (Sqlite3.Data.TEXT "ABC") (ImportSQL.Trim.f text) );
  ]

let tests = ("sql_trim", test_suit)