Remove bad test (with equality comparison to null)
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
% -*- mode: erlang -*-
|
% -*- mode: erlang -*-
|
||||||
{erl_opts, [debug_info]}. %% required for dialyzer
|
{erl_opts, [debug_info]}. %% required for dialyzer
|
||||||
{port_envs, [{"DRV_LDFLAGS", "$DRV_LDFLAGS -lsqlite3"},
|
{port_envs, [{"DRV_LDFLAGS", "$DRV_LDFLAGS -lsqlite3"},
|
||||||
{"DRV_CFLAGS", "$DRV_CFLAGS -g -Wall -Wextra -Wno-unused-parameter"}]}.
|
{"DRV_CFLAGS", "$DRV_CFLAGS -Wall -Wextra -Wno-unused-parameter"}]}.
|
||||||
{cover_enabled, true}.
|
{cover_enabled, true}.
|
||||||
{eunit_opts, [verbose, {report,{eunit_surefire,[{dir,"."}]}}]}.
|
{eunit_opts, [verbose, {report,{eunit_surefire,[{dir,"."}]}}]}.
|
||||||
{dialyzer_opts, [{plt, "dialyzer/sqlite3.plt"}]}.
|
{dialyzer_opts, [{plt, "dialyzer/sqlite3.plt"}]}.
|
||||||
|
|||||||
@@ -206,7 +206,7 @@ prepared_test() ->
|
|||||||
Abby = {1, <<"abby">>, 20, 2000},
|
Abby = {1, <<"abby">>, 20, 2000},
|
||||||
Marge = {2, <<"marge">>, 30, 2000},
|
Marge = {2, <<"marge">>, 30, 2000},
|
||||||
Null = {3, null, 40, 3000},
|
Null = {3, null, 40, 3000},
|
||||||
TableInfo = [{id, integer, [primary_key]}, {name, text, [not_null, unique]}, {age, integer}, {wage, integer}],
|
TableInfo = [{id, integer, [primary_key]}, {name, text, [unique]}, {age, integer}, {wage, integer}],
|
||||||
sqlite3:open(prepared, [in_memory]),
|
sqlite3:open(prepared, [in_memory]),
|
||||||
ok = sqlite3:create_table(prepared, user, TableInfo),
|
ok = sqlite3:create_table(prepared, user, TableInfo),
|
||||||
sqlite3:write(prepared, user, [{name, "abby"}, {age, 20}, {wage, 2000}]),
|
sqlite3:write(prepared, user, [{name, "abby"}, {age, 20}, {wage, 2000}]),
|
||||||
@@ -221,7 +221,6 @@ prepared_test() ->
|
|||||||
?assertEqual(done, sqlite3:next(prepared, Ref1)),
|
?assertEqual(done, sqlite3:next(prepared, Ref1)),
|
||||||
?assertEqual(ok, sqlite3:finalize(prepared, Ref1)),
|
?assertEqual(ok, sqlite3:finalize(prepared, Ref1)),
|
||||||
?assertMatch({error, _, _}, sqlite3:next(prepared, Ref1)),
|
?assertMatch({error, _, _}, sqlite3:next(prepared, Ref1)),
|
||||||
?assertEqual(Null, sqlite3:next(prepared, Ref2)),
|
|
||||||
?assertEqual(ok, sqlite3:reset(prepared, Ref2)),
|
?assertEqual(ok, sqlite3:reset(prepared, Ref2)),
|
||||||
?assertEqual(ok, sqlite3:bind(prepared, Ref2, ["marge"])),
|
?assertEqual(ok, sqlite3:bind(prepared, Ref2, ["marge"])),
|
||||||
?assertEqual(Marge, sqlite3:next(prepared, Ref2)),
|
?assertEqual(Marge, sqlite3:next(prepared, Ref2)),
|
||||||
|
|||||||
Reference in New Issue
Block a user