aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_util.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-05-08 13:16:08 -0400
committerNick Mathewson <nickm@torproject.org>2014-05-08 13:16:08 -0400
commitdf684789380a51c9de14120160adfb796d891436 (patch)
treecbbfc36528d703063ab426d51e3b76105e0d23e5 /src/test/test_util.c
parent5bb617236704be189e68c713d95dac002912a219 (diff)
downloadtor-df684789380a51c9de14120160adfb796d891436.tar
tor-df684789380a51c9de14120160adfb796d891436.tar.gz
Fix unearthed problems in unit tests
Diffstat (limited to 'src/test/test_util.c')
-rw-r--r--src/test/test_util.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/test_util.c b/src/test/test_util.c
index e21f5aa61..2c29429b8 100644
--- a/src/test/test_util.c
+++ b/src/test/test_util.c
@@ -1291,10 +1291,10 @@ test_util_pow2(void)
test_eq(round_to_power_of_2(120), 128);
test_eq(round_to_power_of_2(128), 128);
test_eq(round_to_power_of_2(130), 128);
- test_eq(round_to_power_of_2(U64_LITERAL(40000000000000000)),
- U64_LITERAL(1)<<55);
- test_eq(round_to_power_of_2(U64_LITERAL(0xffffffffffffffff)),
- U64_LITERAL(1)<<63);
+ test_assert(round_to_power_of_2(U64_LITERAL(40000000000000000)) ==
+ U64_LITERAL(1)<<55);
+ test_assert(round_to_power_of_2(U64_LITERAL(0xffffffffffffffff)) ==
+ U64_LITERAL(1)<<63);
test_eq(round_to_power_of_2(0), 1);
test_eq(round_to_power_of_2(1), 1);
test_eq(round_to_power_of_2(2), 2);