Commits

Jacob Perkins committed 7db71d3

passing erldis_list:umerge test

  • Participants
  • Parent commits 8ec56b0

Comments (0)

Files changed (1)

test/erldis_list_tests.erl

 	
 	erldis_client:stop(Client).
 
+umerge_test() ->
+	Client = setup(),
+	Key = <<"foo">>,
+	F = fun(A, B) -> A =< B end,
+	?assertEqual(0, erldis_list:len(Key, Client)),
+	L1 = [<<"a">>, <<"c">>, <<"e">>],
+	erldis_list:umerge(F, L1, Key, Client),
+	L1 = erldis_list:to_list(Key, Client),
+	erldis_list:umerge(F, L1, Key, Client),
+	L1 = erldis_list:to_list(Key, Client),
+	erldis_list:umerge(F, [<<"a">>], Key, Client),
+	L1 = erldis_list:to_list(Key, Client),
+	erldis_client:stop(Client).
+
 common_test() ->
 	Client = setup(),
 	?assertEqual(0, erldis_list:len(<<"foo">>, Client)),