aboutsummaryrefslogtreecommitdiff
path: root/tests/sql_match.ml
blob: 0314bb33a904f8adc11ca96fd82fb6f130fc43ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
open OUnit2

let test_suit =
  [
    ( "Parse regex" >:: fun _ ->
      let text = Sqlite3.Data.TEXT "hello world"
      and regex = Sqlite3.Data.TEXT "hello ([A-Za-z]+)" in

      assert_equal (Sqlite3.Data.TEXT "world") (ImportSQL.Match.f regex text) );
  ]

let tests = "sql_match" >::: test_suit