diff options
author | Nick Mathewson <nickm@torproject.org> | 2015-08-14 08:48:26 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-08-14 08:48:26 -0400 |
commit | 05d52899cbdc7a16d4e9b93555a081d16b06d96b (patch) | |
tree | 372dac41ea28f7e9e203af1bb14684aedd5741f8 /src/test/test_containers.c | |
parent | 34aefe6f38716ad88f07aa479f09008ed9d179b2 (diff) | |
download | tor-05d52899cbdc7a16d4e9b93555a081d16b06d96b.tar.gz tor-05d52899cbdc7a16d4e9b93555a081d16b06d96b.zip |
Fix an overzealous compiler warning in the tests
Diffstat (limited to 'src/test/test_containers.c')
-rw-r--r-- | src/test/test_containers.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/test/test_containers.c b/src/test/test_containers.c index eb98cc80b4..1ee240fb0d 100644 --- a/src/test/test_containers.c +++ b/src/test/test_containers.c @@ -934,12 +934,12 @@ test_container_order_functions(void *arg) #undef third_quartile double dbls[] = { 1.0, 10.0, 100.0, 1e4, 1e5, 1e6 }; - tt_assert(1.0 == median_double(dbls, 1)); - tt_assert(1.0 == median_double(dbls, 2)); - tt_assert(10.0 == median_double(dbls, 3)); - tt_assert(10.0 == median_double(dbls, 4)); - tt_assert(100.0 == median_double(dbls, 5)); - tt_assert(100.0 == median_double(dbls, 6)); + tt_double_eq(1.0, median_double(dbls, 1)); + tt_double_eq(1.0, median_double(dbls, 2)); + tt_double_eq(10.0, median_double(dbls, 3)); + tt_double_eq(10.0, median_double(dbls, 4)); + tt_double_eq(100.0, median_double(dbls, 5)); + tt_double_eq(100.0, median_double(dbls, 6)); time_t times[] = { 5, 10, 20, 25, 15 }; |