diff options
| author | ssmith | 2006-05-14 20:56:49 -0700 |
|---|---|---|
| committer | ssmith | 2006-05-14 20:56:49 -0700 |
| commit | 00622aaa2f0844920db2e34b08c96517dbdce41d (patch) | |
| tree | dd7da8cd8fb2993baccac522595d836638f3c3f3 /tests.erl | |
| parent | c4f4a55b60ccc5715437e8b3912efa780c765313 (diff) | |
Add dict encoder and basic test.
Diffstat (limited to 'tests.erl')
| -rw-r--r-- | tests.erl | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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() -> |
