Remove bad test (with equality comparison to null)

This commit is contained in:
Alexey Romanov
2010-12-10 09:52:48 +03:00
parent 9f6e8845a5
commit 3949f15e25
2 changed files with 2 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
% -*- mode: erlang -*-
{erl_opts, [debug_info]}. %% required for dialyzer
{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}.
{eunit_opts, [verbose, {report,{eunit_surefire,[{dir,"."}]}}]}.
{dialyzer_opts, [{plt, "dialyzer/sqlite3.plt"}]}.

View File

@@ -206,7 +206,7 @@ prepared_test() ->
Abby = {1, <<"abby">>, 20, 2000},
Marge = {2, <<"marge">>, 30, 2000},
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]),
ok = sqlite3:create_table(prepared, user, TableInfo),
sqlite3:write(prepared, user, [{name, "abby"}, {age, 20}, {wage, 2000}]),
@@ -221,7 +221,6 @@ prepared_test() ->
?assertEqual(done, sqlite3:next(prepared, Ref1)),
?assertEqual(ok, sqlite3:finalize(prepared, Ref1)),
?assertMatch({error, _, _}, sqlite3:next(prepared, Ref1)),
?assertEqual(Null, sqlite3:next(prepared, Ref2)),
?assertEqual(ok, sqlite3:reset(prepared, Ref2)),
?assertEqual(ok, sqlite3:bind(prepared, Ref2, ["marge"])),
?assertEqual(Marge, sqlite3:next(prepared, Ref2)),