aboutsummaryrefslogtreecommitdiff
path: root/tests/sql_trim.ml
diff options
context:
space:
mode:
authorSébastien Dailly <sebastien@dailly.me>2024-03-14 08:26:58 +0100
committerSébastien Dailly <sebastien@dailly.me>2024-03-14 08:26:58 +0100
commit6b377719c10d5ab3343fd5221f99a4a21008e25a (patch)
treea7c1e9a820d339a2f161af3e09cf9e3161286796 /tests/sql_trim.ml
Initial commitmain
Diffstat (limited to 'tests/sql_trim.ml')
-rw-r--r--tests/sql_trim.ml11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/sql_trim.ml b/tests/sql_trim.ml
new file mode 100644
index 0000000..77e755e
--- /dev/null
+++ b/tests/sql_trim.ml
@@ -0,0 +1,11 @@
+open OUnit2
+
+let test_suit =
+ [
+ ( "Trim" >:: fun _ ->
+ let text = Sqlite3.Data.TEXT " \nABC \n" in
+
+ assert_equal (Sqlite3.Data.TEXT "ABC") (ImportSQL.Trim.f text) );
+ ]
+
+let tests = "sql_trim" >::: test_suit