summaryrefslogtreecommitdiff
path: root/tests.erl
diff options
context:
space:
mode:
Diffstat (limited to 'tests.erl')
-rw-r--r--tests.erl5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests.erl b/tests.erl
index a12b663..ce891be 100644
--- a/tests.erl
+++ b/tests.erl
@@ -33,6 +33,11 @@ test_enc_list3() ->
{int, 3}]},
{string, "xyz"}]})).
+%% Dict encoding tests
+test_enc_dict() ->
+ Dict = dict:from_list([{"age", {int, 25}}, {"eyes", {string, "blue"}}]),
+ ?match("d3:agei25e4:eyes4:bluee", bencode:bencode({dict, Dict})).
+
%% Integer decoding tests
test_dec_int1() ->