Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

sort the lists to make sure all keys exist

  • Loading branch information...
commit a0161388321c93d610556dc3caea4d9a2a90f818 1 parent 441aa4e
joewilliams authored

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. +2 1  test/erldis_tests.erl
3  test/erldis_tests.erl
@@ -29,7 +29,8 @@ basic_test() ->
29 29 erldis:set(Client,<<"foo1">>,<<"bar">>),
30 30 erldis:set(Client,<<"foo2">>,<<"bar">>),
31 31 erldis:set(Client,<<"foo3">>,<<"bar">>),
32   - ?assertEqual([<<"foo">>,<<"foo1">>,<<"foo2">>,<<"foo3">>], erldis:keys(Client, <<"f*">>)),
  32 + ?assertEqual(lists:sort([<<"foo">>,<<"foo1">>,<<"foo2">>,<<"foo3">>]),
  33 + lists:sort(erldis:keys(Client, <<"f*">>))),
33 34 erldis:set(Client,<<"quux">>,<<"ohai">>),
34 35 ?assertEqual([<<"quux">>], erldis:keys(Client, <<"q*">>)),
35 36

0 comments on commit a016138

Please sign in to comment.
Something went wrong with that request. Please try again.