diff options
author | Esteban Manchado Velázquez <emanchado@demiurgo.org> | 2012-02-11 01:20:09 +0100 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2012-03-08 20:49:25 -0500 |
commit | 3e4a977781fe0ae85ec9677e9496de5451e5c824 (patch) | |
tree | 49c8bc0c7e79f368c29e009fbb12043ac096fb4f | |
parent | afb89b83f2d69833fd2c6625c786f6ac71219ac9 (diff) | |
download | tor-3e4a977781fe0ae85ec9677e9496de5451e5c824.tar.gz tor-3e4a977781fe0ae85ec9677e9496de5451e5c824.zip |
Put expected first in n_bits_set_u8 unit tests
-rw-r--r-- | src/test/test_util.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/test/test_util.c b/src/test/test_util.c index a7554a40dc..809039bf32 100644 --- a/src/test/test_util.c +++ b/src/test/test_util.c @@ -2214,10 +2214,12 @@ static void test_util_n_bits_set(void *ptr) { (void)ptr; - test_eq(n_bits_set_u8(0), 0); - test_eq(n_bits_set_u8(1), 1); - test_eq(n_bits_set_u8(129), 2); - test_eq(n_bits_set_u8(255), 8); + test_eq(0, n_bits_set_u8(0)); + test_eq(1, n_bits_set_u8(1)); + test_eq(3, n_bits_set_u8(7)); + test_eq(1, n_bits_set_u8(8)); + test_eq(2, n_bits_set_u8(129)); + test_eq(8, n_bits_set_u8(255)); done: ; } |