Add test to ensure the linked sqlite version is the one from c_src

This commit is contained in:
Martin Schürrer
2014-08-31 03:45:48 +02:00
parent 6428cec6dd
commit 6b05b61dc2

View File

@@ -273,7 +273,12 @@ error1_msg_test() ->
{error, {cantopen, _Msg3}} = esqlite3:open("/dit/bestaat/niet"), {error, {cantopen, _Msg3}} = esqlite3:open("/dit/bestaat/niet"),
ok. ok.
sqlite_version_test() ->
{ok, Db} = esqlite3:open(":memory:"),
{ok, Stmt} = esqlite3:prepare("select sqlite_version() as sqlite_version;", Db),
{sqlite_version} = esqlite3:column_names(Stmt),
{row, {<<"3.8.5">>}} = esqlite3:step(Stmt),
ok.