From 07f054a2bbd4ac6e8a24be284aed23c6cb1d0266 Mon Sep 17 00:00:00 2001 From: Jon Shallow Date: Mon, 23 Dec 2019 13:24:20 +0000 Subject: [PATCH] tests/test_encode.c: Remove trailing white space --- tests/test_encode.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/tests/test_encode.c b/tests/test_encode.c index f7300938..8d64bb2c 100644 --- a/tests/test_encode.c +++ b/tests/test_encode.c @@ -25,7 +25,7 @@ t_decode1(void) { unsigned int result; result = coap_decode_var_bytes(teststr.s, teststr.length); - + CU_ASSERT(result == 0); } @@ -36,7 +36,7 @@ t_decode2(void) { unsigned int result; result = coap_decode_var_bytes8(teststr.s, teststr.length); - + CU_ASSERT(result == 1); } @@ -47,7 +47,7 @@ t_decode3(void) { unsigned int result; result = coap_decode_var_bytes(teststr.s, teststr.length); - + CU_ASSERT(result == 0x01000000); } @@ -58,7 +58,7 @@ t_decode4(void) { unsigned int result; result = coap_decode_var_bytes(teststr.s, teststr.length); - + CU_ASSERT(result == 0x05060708); } @@ -68,7 +68,7 @@ t_decode5(void) { uint64_t result; result = coap_decode_var_bytes8(teststr.s, teststr.length); - + CU_ASSERT(result == 0); } @@ -79,7 +79,7 @@ t_decode6(void) { uint64_t result; result = coap_decode_var_bytes8(teststr.s, teststr.length); - + CU_ASSERT(result == 1); } @@ -90,7 +90,7 @@ t_decode7(void) { uint64_t result; result = coap_decode_var_bytes8(teststr.s, teststr.length); - + CU_ASSERT(result == 0x0100000000000000); } @@ -101,7 +101,7 @@ t_decode8(void) { uint64_t result; result = coap_decode_var_bytes8(teststr.s, teststr.length); - + CU_ASSERT(result == 0x0102030405060708); } @@ -116,7 +116,7 @@ t_encode1(void) { unsigned int result; result = coap_encode_var_safe(buf, sizeof(buf), 0x00); - + CU_ASSERT(result == 0); CU_ASSERT(memcmp(buf, data, result) == 0); @@ -129,7 +129,7 @@ t_encode2(void) { unsigned int result; result = coap_encode_var_safe(buf, sizeof(buf), 0x01); - + CU_ASSERT(result == sizeof(data)); CU_ASSERT(memcmp(buf, data, result) == 0); @@ -166,7 +166,7 @@ t_encode5(void) { unsigned int result; result = coap_encode_var_safe8(buf, sizeof(buf), 0x00); - + CU_ASSERT(result == 0); CU_ASSERT(memcmp(buf, data, result) == 0); @@ -179,7 +179,7 @@ t_encode6(void) { unsigned int result; result = coap_encode_var_safe8(buf, sizeof(buf), 0x01); - + CU_ASSERT(result == sizeof(data)); CU_ASSERT(memcmp(buf, data, result) == 0);