• R/O
  • SSH

libctools: Commit

This library contains code that extends and simplifies different operations
for C language based programs.


Commit MetaInfo

Revisión58c64d3fef24bb5357ab83a50fdfe95bf66e15d5 (tree)
Tiempo2017-10-09 09:37:32
Autors.gusarov
Commiters.gusarov

Log Message

test_simple_round: Use INT functions instead of INT64 - more universal way on 32x platform.

Cambiar Resumen

Diferencia incremental

diff -r 09e9b140d9a9 -r 58c64d3fef24 tests/src/test_simple_round.c
--- a/tests/src/test_simple_round.c Mon Oct 09 01:39:31 2017 +0300
+++ b/tests/src/test_simple_round.c Mon Oct 09 03:37:32 2017 +0300
@@ -24,12 +24,12 @@
2424
2525 void testCompile(void)
2626 {
27- TEST_ASSERT_EQUAL_INT64(CT_SIMPLE_LROUND(1.5), 2);
28- TEST_ASSERT_EQUAL_INT64(CT_SIMPLE_LROUNDF(1.5), 2);
29- TEST_ASSERT_EQUAL_INT64(CT_SIMPLE_LROUNDL(1.5), 2);
30- TEST_ASSERT_EQUAL_INT64(CT_SIMPLE_LLROUND(1.5), 2);
31- TEST_ASSERT_EQUAL_INT64(CT_SIMPLE_LLROUNDF(1.5), 2);
32- TEST_ASSERT_EQUAL_INT64(CT_SIMPLE_LLROUNDL(1.5), 2);
27+ TEST_ASSERT_EQUAL_INT(CT_SIMPLE_LROUND(1.5), 2);
28+ TEST_ASSERT_EQUAL_INT(CT_SIMPLE_LROUNDF(1.5), 2);
29+ TEST_ASSERT_EQUAL_INT(CT_SIMPLE_LROUNDL(1.5), 2);
30+ TEST_ASSERT_EQUAL_INT(CT_SIMPLE_LLROUND(1.5), 2);
31+ TEST_ASSERT_EQUAL_INT(CT_SIMPLE_LLROUNDF(1.5), 2);
32+ TEST_ASSERT_EQUAL_INT(CT_SIMPLE_LLROUNDL(1.5), 2);
3333
3434
3535 TEST_ASSERT_EQUAL_INT8(CT_SIMPLE_ROUNDF8(1.5f), 2);
@@ -60,8 +60,8 @@
6060
6161 void testAdditional(void)
6262 {
63- TEST_ASSERT_EQUAL_INT64(CT_SIMPLE_LROUND(-1.5), -2);
64- TEST_ASSERT_EQUAL_INT64(CT_SIMPLE_LROUND(-1.49), -1);
63+ TEST_ASSERT_EQUAL_INT(CT_SIMPLE_LROUND(-1.5), -2);
64+ TEST_ASSERT_EQUAL_INT(CT_SIMPLE_LROUND(-1.49), -1);
6565
66- TEST_ASSERT_EQUAL_INT64(CT_SIMPLE_LROUND(2.49999), 2);
66+ TEST_ASSERT_EQUAL_INT(CT_SIMPLE_LROUND(2.49999), 2);
6767 }
Show on old repository browser