| /src/external/bsd/ntp/dist/tests/libntp/ |
| hextoint.c | 20 u_long actual; local 22 TEST_ASSERT_TRUE(hextoint(str, &actual)); 23 TEST_ASSERT_EQUAL(10, actual); 28 u_long actual; local 30 TEST_ASSERT_TRUE(hextoint(str, &actual)); 31 TEST_ASSERT_EQUAL(2291, actual); 36 u_long actual; local 38 TEST_ASSERT_TRUE(hextoint(str, &actual)); 39 TEST_ASSERT_EQUAL(4294967295UL, actual); 44 u_long actual; local 51 u_long actual; local [all...] |
| octtoint.c | 23 u_long actual; local 25 TEST_ASSERT_TRUE(octtoint(str, &actual)); 26 TEST_ASSERT_EQUAL(5, actual); 35 u_long actual; local 37 TEST_ASSERT_TRUE(octtoint(str, &actual)); 38 TEST_ASSERT_EQUAL(185, actual); 47 u_long actual; local 49 TEST_ASSERT_TRUE(octtoint(str, &actual)); 50 TEST_ASSERT_EQUAL(0, actual); 59 u_long actual; local 71 u_long actual; local 82 u_long actual; local 93 u_long actual; local [all...] |
| hextolfp.c | 22 l_fp actual; local 26 TEST_ASSERT_TRUE(hextolfp(str, &actual)); 27 TEST_ASSERT_TRUE(IsEqual(expected, actual)); 33 l_fp actual; local 37 TEST_ASSERT_TRUE(hextolfp(str, &actual)); 38 TEST_ASSERT_TRUE(IsEqual(expected, actual)); 44 l_fp actual; local 48 TEST_ASSERT_TRUE(hextolfp(str, &actual)); 49 TEST_ASSERT_TRUE(IsEqual(expected, actual)); 55 l_fp actual; local 66 l_fp actual; local 74 l_fp actual; local [all...] |
| atouint.c | 21 u_long actual; local 23 TEST_ASSERT_TRUE(atouint(str, &actual)); 24 TEST_ASSERT_EQUAL(305, actual); 29 u_long actual; local 31 TEST_ASSERT_FALSE(atouint(str, &actual)); 36 u_long actual; local 38 TEST_ASSERT_FALSE(atouint(str, &actual)); 43 u_long actual; local 45 TEST_ASSERT_FALSE(atouint(str, &actual)); 50 u_long actual; local [all...] |
| lfptest.c | 7 int IsEqual(const l_fp expected, const l_fp actual) { 8 if (L_ISEQU(&expected, &actual)) {
|
| tstotv.c | 19 struct timeval actual; local 21 TSTOTV(&input, &actual); 23 TEST_ASSERT_EQUAL(expected.tv_sec, actual.tv_sec); 24 TEST_ASSERT_EQUAL(expected.tv_usec, actual.tv_usec); 32 struct timeval actual; local 34 TSTOTV(&input, &actual); 36 TEST_ASSERT_EQUAL(expected.tv_sec, actual.tv_sec); 37 TEST_ASSERT_EQUAL(expected.tv_usec, actual.tv_usec); 45 struct timeval actual; local 47 TSTOTV(&input, &actual); [all...] |
| buftvtots.c | 29 l_fp actual; local 31 TEST_ASSERT_TRUE(buftvtots((const char*)(&input), &actual)); 32 TEST_ASSERT_TRUE(IsEqual(expected, actual)); 48 l_fp actual; local 50 TEST_ASSERT_TRUE(buftvtots((const char*)(&input), &actual)); 53 TEST_ASSERT_EQUAL(expected.l_ui, actual.l_ui); 56 M_LFPTOD(0, actual.l_uf, actualDouble); 73 l_fp actual; local 75 TEST_ASSERT_FALSE(buftvtots((const char*)(&input), &actual)); 92 l_fp actual; local [all...] |
| caljulian.c | 36 IsEqual(const struct calendar expected, const struct calendar actual) 38 if ( expected.year == actual.year 39 && ( expected.yearday == actual.yearday 40 || ( expected.month == actual.month 41 && expected.monthday == actual.monthday)) 42 && expected.hour == actual.hour 43 && expected.minute == actual.minute 44 && expected.second == actual.second) { 48 const char * p_act = CalendarToString(actual); 73 struct calendar actual; local 85 struct calendar actual; local 97 struct calendar actual; local 109 struct calendar actual; local [all...] |
| tvtots.c | 21 l_fp actual; local 23 TVTOTS(&input, &actual); 25 TEST_ASSERT_TRUE(IsEqual(expected, actual)); 39 l_fp actual; local 41 TVTOTS(&input, &actual); 43 TEST_ASSERT_TRUE(IsEqual(expected, actual)); 53 l_fp actual; local 55 TVTOTS(&input, &actual); 58 TEST_ASSERT_EQUAL_UINT(expected.l_ui, actual.l_ui); 62 M_LFPTOD(0, actual.l_uf, actualDouble) [all...] |
| sockaddrtest.c | 21 IsEqual(const sockaddr_u expected, const sockaddr_u actual) { 25 if (expected.sa.sa_family != actual.sa.sa_family) { 26 printf("Expected sa_family: %d but got: %d", expected.sa.sa_family, actual.sa.sa_family); 30 if (actual.sa.sa_family == AF_INET) { // IPv4 31 if ( expected.sa4.sin_port == actual.sa4.sin_port 32 && memcmp(&expected.sa4.sin_addr, &actual.sa4.sin_addr, 39 strlcpy(buf[2], inet_ntoa(actual.sa4.sin_addr) , sizeof(buf[2])); 40 strlcpy(buf[3], socktoa(&actual) , sizeof(buf[3])); 45 } else if (actual.sa.sa_family == AF_INET6) { //IPv6 46 if ( expected.sa6.sin6_port == actual.sa6.sin6_por [all...] |
| /src/external/bsd/ntp/dist/sntp/unity/ |
| unity.h | 78 #define TEST_ASSERT_EQUAL_INT(expected, actual) UNITY_TEST_ASSERT_EQUAL_INT((expected), (actual), __LINE__, NULL) 79 #define TEST_ASSERT_EQUAL_INT8(expected, actual) UNITY_TEST_ASSERT_EQUAL_INT8((expected), (actual), __LINE__, NULL) 80 #define TEST_ASSERT_EQUAL_INT16(expected, actual) UNITY_TEST_ASSERT_EQUAL_INT16((expected), (actual), __LINE__, NULL) 81 #define TEST_ASSERT_EQUAL_INT32(expected, actual) UNITY_TEST_ASSERT_EQUAL_INT32((expected), (actual), __LINE__, NULL) 82 #define TEST_ASSERT_EQUAL_INT64(expected, actual) UNITY_TEST_ASSERT_EQUAL_INT64((expected), (actual), __LINE__, NULL [all...] |
| /src/sys/external/bsd/compiler_rt/dist/test/builtins/Unit/ |
| truncdfsf2_test.c | 22 float actual = __truncdfsf2(a); local 25 if (actual != expected) { 27 "expected %f\n", a, actual, expected);
|
| extebdsfdf2vfp_test.c | 25 double actual = __extendsfdf2vfp(a); local 27 if (actual != expected) 29 a, actual, expected); 30 return actual != expected;
|
| fixdfsivfp_test.c | 24 int actual = __fixdfsivfp(a); local 26 if (actual != expected) 28 a, actual, expected); 29 return actual != expected;
|
| fixunssfsivfp_test.c | 24 unsigned int actual = __fixunssfsivfp(a); local 26 if (actual != expected) 28 a, actual, expected); 29 return actual != expected;
|
| /src/sys/external/bsd/compiler_rt/dist/test/Unit/ |
| extebdsfdf2vfp_test.c | 24 double actual = __extendsfdf2vfp(a); local 26 if (actual != expected) 28 a, actual, expected); 29 return actual != expected;
|
| fixdfsivfp_test.c | 24 int actual = __fixdfsivfp(a); local 26 if (actual != expected) 28 a, actual, expected); 29 return actual != expected;
|
| fixunsdfsivfp_test.c | 24 unsigned int actual = __fixunsdfsivfp(a); local 26 if (actual != expected) 28 a, actual, expected); 29 return actual != expected;
|
| fixunssfsivfp_test.c | 24 unsigned int actual = __fixunssfsivfp(a); local 26 if (actual != expected) 28 a, actual, expected); 29 return actual != expected;
|
| negdf2vfp_test.c | 24 double actual = __negdf2vfp(a); local 26 if (actual != expected) 28 a, actual, expected); 29 return actual != expected;
|
| negsf2vfp_test.c | 24 float actual = __negsf2vfp(a); local 26 if (actual != expected) 28 a, actual, expected); 29 return actual != expected;
|
| truncdfsf2vfp_test.c | 24 float actual = __truncdfsf2vfp(a); local 26 if (actual != expected) 28 a, actual, expected); 29 return actual != expected;
|
| adddf3vfp_test.c | 24 double actual = __adddf3vfp(a, b); local 26 if (actual != expected) 28 a, b, actual, expected); 29 return actual != expected;
|
| addsf3vfp_test.c | 24 float actual = __addsf3vfp(a, b); local 26 if (actual != expected) 28 a, b, actual, expected); 29 return actual != expected;
|
| bswapdi2_test.c | 25 uint64_t actual = __bswapdi2(a); local 26 if (actual != expected) 28 a, actual, expected); 29 return actual != expected;
|