diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-10-02 13:59:08 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-10-03 08:07:36 -0400 |
commit | bb7288b2c31c8a73654408a421681fd19778b835 (patch) | |
tree | 9ab658c298fa0afc46d3afb612c02efa557e4f41 /src/test/test_containers.c | |
parent | d00a26f8602f615f241895dd2a0d69cb74961114 (diff) | |
download | tor-bb7288b2c31c8a73654408a421681fd19778b835.tar.gz tor-bb7288b2c31c8a73654408a421681fd19778b835.zip |
Make the fp_pair_map tests cover {get,set}_by_digests
Diffstat (limited to 'src/test/test_containers.c')
-rw-r--r-- | src/test/test_containers.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/test/test_containers.c b/src/test/test_containers.c index 279d69754f..c4dba73750 100644 --- a/src/test/test_containers.c +++ b/src/test/test_containers.c @@ -1106,7 +1106,7 @@ test_container_fp_pair_map(void *arg) tt_int_op(fp_pair_map_size(map),OP_EQ, 4); fp_pair_map_assert_ok(map); fp_pair_map_set(map, &fp5, v104); - fp_pair_map_set(map, &fp6, v105); + fp_pair_map_set_by_digests(map, fp6.first, fp6.second, v105); fp_pair_map_assert_ok(map); /* Test iterator. */ @@ -1124,7 +1124,8 @@ test_container_fp_pair_map(void *arg) /* Make sure we removed fp2, but not the others. */ tt_ptr_op(fp_pair_map_get(map, &fp2),OP_EQ, NULL); - tt_ptr_op(fp_pair_map_get(map, &fp5),OP_EQ, v104); + tt_ptr_op(fp_pair_map_get_by_digests(map, fp5.first, fp5.second), + OP_EQ, v104); fp_pair_map_assert_ok(map); /* Clean up after ourselves. */ |