Searched refs:actual (Results 1 - 25 of 124) sorted by relevance

12345

/freebsd-head/contrib/ntp/sntp/unity/
H A Dunity.h76 #define TEST_ASSERT_EQUAL_INT(expected, actual) UNITY_TEST_ASSERT_EQUAL_INT((expected), (actual), __LINE__, NULL)
77 #define TEST_ASSERT_EQUAL_INT8(expected, actual) UNITY_TEST_ASSERT_EQUAL_INT8((expected), (actual), __LINE__, NULL)
78 #define TEST_ASSERT_EQUAL_INT16(expected, actual) UNITY_TEST_ASSERT_EQUAL_INT16((expected), (actual), __LINE__, NULL)
79 #define TEST_ASSERT_EQUAL_INT32(expected, actual) UNITY_TEST_ASSERT_EQUAL_INT32((expected), (actual), __LINE__, NULL)
80 #define TEST_ASSERT_EQUAL_INT64(expected, actual) UNITY_TEST_ASSERT_EQUAL_INT64((expected), (actual), __LINE_
[all...]
H A Dunity_internals.h437 const _U_SINT actual,
443 UNITY_PTR_ATTRIBUTE const void* actual,
451 const _U_SINT actual,
456 const char* actual,
461 const char** actual,
467 UNITY_PTR_ATTRIBUTE const void* actual,
475 const _U_SINT actual,
487 const _UF actual,
492 UNITY_PTR_ATTRIBUTE const _UF* actual,
497 void UnityAssertFloatSpecial(const _UF actual,
[all...]
H A Dunity_fixture.h76 #define TEST_ASSERT_POINTERS_EQUAL(expected, actual) TEST_ASSERT_EQUAL_PTR(expected, actual)
77 #define TEST_ASSERT_BYTES_EQUAL(expected, actual) TEST_ASSERT_EQUAL_HEX8(0xff & (expected), 0xff & (actual))
80 #define LONGS_EQUAL(expected, actual) TEST_ASSERT_EQUAL_INT((expected), (actual))
81 #define STRCMP_EQUAL(expected, actual) TEST_ASSERT_EQUAL_STRING((expected), (actual))
82 #define DOUBLES_EQUAL(expected, actual, delta) TEST_ASSERT_FLOAT_WITHIN(((expected), (actual), (delt
[all...]
H A Dunity.c387 static void UnityPrintExpectedAndActualStrings(const char* expected, const char* actual) argument
401 if (actual != NULL)
404 UnityPrint(actual);
417 static int UnityCheckArraysForNull(UNITY_PTR_ATTRIBUTE const void* expected, UNITY_PTR_ATTRIBUTE const void* actual, const UNITY_LINE_TYPE lineNumber, const char* msg) argument
420 if ((expected == NULL) && (actual == NULL))
432 //throw error if just actual is NULL
433 if (actual == NULL)
451 const _U_SINT actual,
457 if ((mask & expected) != (mask & actual))
463 UnityPrintMask((_U_UINT)mask, (_U_UINT)actual);
449 UnityAssertBits(const _U_SINT mask, const _U_SINT expected, const _U_SINT actual, const char* msg, const UNITY_LINE_TYPE lineNumber) argument
470 UnityAssertEqualNumber(const _U_SINT expected, const _U_SINT actual, const char* msg, const UNITY_LINE_TYPE lineNumber, const UNITY_DISPLAY_STYLE_T style) argument
491 UnityAssertEqualIntArray(UNITY_PTR_ATTRIBUTE const void* expected, UNITY_PTR_ATTRIBUTE const void* actual, const _UU32 num_elements, const char* msg, const UNITY_LINE_TYPE lineNumber, const UNITY_DISPLAY_STYLE_T style) argument
609 UnityAssertEqualFloatArray(UNITY_PTR_ATTRIBUTE const _UF* expected, UNITY_PTR_ATTRIBUTE const _UF* actual, const _UU32 num_elements, const char* msg, const UNITY_LINE_TYPE lineNumber) argument
665 UnityAssertFloatsWithin(const _UF delta, const _UF expected, const _UF actual, const char* msg, const UNITY_LINE_TYPE lineNumber) argument
703 UnityAssertFloatSpecial(const _UF actual, const char* msg, const UNITY_LINE_TYPE lineNumber, const UNITY_FLOAT_TRAIT_T style) argument
770 UnityAssertEqualDoubleArray(UNITY_PTR_ATTRIBUTE const _UD* expected, UNITY_PTR_ATTRIBUTE const _UD* actual, const _UU32 num_elements, const char* msg, const UNITY_LINE_TYPE lineNumber) argument
826 UnityAssertDoublesWithin(const _UD delta, const _UD expected, const _UD actual, const char* msg, const UNITY_LINE_TYPE lineNumber) argument
865 UnityAssertDoubleSpecial(const _UD actual, const char* msg, const UNITY_LINE_TYPE lineNumber, const UNITY_FLOAT_TRAIT_T style) argument
932 UnityAssertNumbersWithin( const _U_SINT delta, const _U_SINT expected, const _U_SINT actual, const char* msg, const UNITY_LINE_TYPE lineNumber, const UNITY_DISPLAY_STYLE_T style) argument
971 UnityAssertEqualString(const char* expected, const char* actual, const char* msg, const UNITY_LINE_TYPE lineNumber) argument
1010 UnityAssertEqualStringArray( const char** expected, const char** actual, const _UU32 num_elements, const char* msg, const UNITY_LINE_TYPE lineNumber) argument
1070 UnityAssertEqualMemory( UNITY_PTR_ATTRIBUTE const void* expected, UNITY_PTR_ATTRIBUTE const void* actual, const _UU32 length, const _UU32 num_elements, const char* msg, const UNITY_LINE_TYPE lineNumber) argument
[all...]
H A Dunity_fixture_internals.h40 const void * actual,
/freebsd-head/crypto/openssh/regress/
H A Dhost-expand.sh14 ${SSH} -F $OBJ/ssh_proxy somehost true >$OBJ/actual
15 diff $OBJ/expect $OBJ/actual || fail "$tid"
/freebsd-head/contrib/libarchive/libarchive/test/
H A Dtest_read_format_gtar_sparse.c182 struct contents actual; local
208 &p, &actual.s, &actual.o))) {
209 actual.d = p;
210 while (actual.s > 0) {
211 char c = *actual.d;
212 if(actual.o < expect.o) {
218 "should be zero", name, actual.o);
220 } else if (actual.o == expect.o) {
237 assert(actual
[all...]
/freebsd-head/contrib/ncurses/ncurses/widechar/
H A Dwidechars.c69 wchar_t actual[2]; local
70 memset(&actual, 0, sizeof(actual));
75 actual,
77 TR(TRACE_BITS, ("\twin32 ->%#x, %#x", actual[0], actual[1]));
78 *pwc = actual[0];
79 if (actual[1] != 0)
/freebsd-head/lib/libc/tests/stdlib/
H A Dstrfmon_test.c39 char actual[40], expected[40]; local
56 strfmon(actual, sizeof(actual), "%i", n);
63 actual[strlen(expected)] = '\0';
64 ATF_CHECK_STREQ(expected, actual);
/freebsd-head/contrib/ncurses/ncurses/tinfo/
H A DMKcaptab.sh72 _nc_build_names(struct name_table_entry **actual,
76 if (*actual == 0) {
77 *actual = typeCalloc(struct name_table_entry, CAPTABSIZE);
78 if (*actual != 0) {
82 (*actual)[n].nte_name = strings + len;
83 (*actual)[n].nte_type = source[n].nte_type;
84 (*actual)[n].nte_index = source[n].nte_index;
85 (*actual)[n].nte_link = source[n].nte_link;
90 return *actual;
95 (*actual)[
[all...]
/freebsd-head/contrib/atf/atf-c/
H A Dmacros.h156 #define ATF_REQUIRE_EQ(expected, actual) \
157 ATF_REQUIRE_MSG((expected) == (actual), "%s != %s", #expected, #actual)
159 #define ATF_CHECK_EQ(expected, actual) \
160 ATF_CHECK_MSG((expected) == (actual), "%s != %s", #expected, #actual)
162 #define ATF_REQUIRE_EQ_MSG(expected, actual, fmt, ...) \
163 ATF_REQUIRE_MSG((expected) == (actual), "%s != %s: " fmt, \
164 #expected, #actual, ##__VA_ARGS__)
166 #define ATF_CHECK_EQ_MSG(expected, actual, fm
[all...]
H A Dbuild_test.c115 char *actual[] = { NULL }; local
117 ATF_CHECK(equal_arrays(exp, actual));
122 char *actual[2] = { strdup("foo"), NULL }; local
124 ATF_CHECK(!equal_arrays(exp, actual));
125 free(actual[0]);
130 char *actual[] = { NULL }; local
132 ATF_CHECK(!equal_arrays(exp, actual));
137 char *actual[2] = { strdup("foo"), NULL }; local
139 ATF_CHECK(equal_arrays(exp, actual));
140 free(actual[
[all...]
/freebsd-head/lib/libc/tests/iconv/
H A Diconvctl_test.c37 int actual, status; local
42 status = iconvctl(ic, ICONV_TRIVIALP, &actual);
45 ATF_REQUIRE(actual == expected);
/freebsd-head/contrib/googletest/googletest/test/
H A Dgoogletest-uninitialized-test.py44 def AssertEq(expected, actual):
45 if expected != actual:
47 print ' Actual: %s' % (actual,)
H A Dgtest_xml_outfiles_test.py128 actual = minidom.parse(output_file1)
130 actual = minidom.parse(output_file2)
131 self.NormalizeXml(actual.documentElement)
133 actual.documentElement)
135 actual.unlink()
H A Dgoogletest-env-var-test.py46 def AssertEq(expected, actual):
47 if expected != actual:
49 print ' Actual: %s' % (actual,)
H A Dgtest_list_output_unittest.py124 actual = self._GetOutput(test_format)
125 actual_lines = actual.splitlines()
133 ('actual output of "%s",\n'
135 'on line %d' % (actual, expected_output, line_count)))
H A Dgoogletest-filepath-test.cc240 FilePath actual = FilePath::MakeFileName(FilePath("foo"), FilePath("bar"), local
242 EXPECT_EQ("foo" GTEST_PATH_SEP_ "bar.xml", actual.string());
246 FilePath actual = FilePath::MakeFileName(FilePath("foo"), FilePath("bar"), local
248 EXPECT_EQ("foo" GTEST_PATH_SEP_ "bar_12.xml", actual.string());
252 FilePath actual = FilePath::MakeFileName(FilePath("foo" GTEST_PATH_SEP_), local
254 EXPECT_EQ("foo" GTEST_PATH_SEP_ "bar.xml", actual.string());
258 FilePath actual = FilePath::MakeFileName(FilePath("foo" GTEST_PATH_SEP_), local
260 EXPECT_EQ("foo" GTEST_PATH_SEP_ "bar_12.xml", actual.string());
264 FilePath actual = FilePath::MakeFileName(FilePath(""), FilePath("bar"), local
266 EXPECT_EQ("bar.xml", actual
270 FilePath actual = FilePath::MakeFileName(FilePath(""), FilePath("bar"), local
276 FilePath actual = FilePath::ConcatPaths(FilePath("foo"), local
282 FilePath actual = FilePath::ConcatPaths(FilePath("foo" GTEST_PATH_SEP_), local
288 FilePath actual = FilePath::ConcatPaths(FilePath(""), local
294 FilePath actual = FilePath::ConcatPaths(FilePath("foo"), FilePath("")); local
299 FilePath actual = FilePath::ConcatPaths(FilePath(""), local
305 FilePath actual = FilePath::ConcatPaths(FilePath("foo" GTEST_PATH_SEP_ "bar"), local
312 FilePath actual = FilePath::ConcatPaths( local
320 FilePath actual = FilePath::ConcatPaths(FilePath("foo"), local
[all...]
/freebsd-head/contrib/ntp/sntp/tests/
H A DkeyFile.c10 bool CompareKeys(struct key expected, struct key actual);
11 bool CompareKeysAlternative(int key_id,int key_len,const char* type,const char* key_seq,struct key actual);
22 struct key actual
25 if (expected.key_id != actual.key_id) {
27 expected.key_id, actual.key_id);
30 if (expected.key_len != actual.key_len) {
32 expected.key_len, actual.key_len);
35 if (strcmp(expected.typen, actual.typen) != 0) {
37 expected.typen, actual.typen);
41 if (memcmp(expected.key_seq, actual
[all...]
H A DkodFile.c116 FILE * actual = fopen(kod_db_file, "rb"); local
119 TEST_ASSERT_NOT_NULL(actual);
122 TEST_ASSERT_EQUAL(GetFileSize(expected), GetFileSize(actual));
124 TEST_ASSERT_TRUE(CompareFileContent(expected, actual));
146 FILE * actual = fopen(kod_db_file, "rb"); local
149 TEST_ASSERT_NOT_NULL(actual);
153 TEST_ASSERT_EQUAL(GetFileSize(expected), GetFileSize(actual));
155 TEST_ASSERT_TRUE(CompareFileContent(expected, actual));
H A Dutilities.c15 void FinishDebugTest(const char * expected,const char * actual);
66 const char * actual) {
71 FILE * a = fopen(actual,"rb");
126 struct pkt actual; local
127 set_li_vn_mode(&actual, LEAP_NOWARNING, NTP_VERSION,
130 TEST_ASSERT_EQUAL(expected.li_vn_mode, actual.li_vn_mode);
141 struct pkt actual; local
142 set_li_vn_mode(&actual, LEAP_NOTINSYNC, NTP_OLDVERSION,
145 TEST_ASSERT_EQUAL(expected.li_vn_mode, actual.li_vn_mode);
65 FinishDebugTest(const char * expected, const char * actual) argument
H A Dcrypto.c35 char actual[MD5_LENGTH]; local
46 make_mac(PKT_DATA, PKT_LEN, MD5_LENGTH, &md5, actual));
48 TEST_ASSERT_TRUE(memcmp(EXPECTED_DIGEST, actual, MD5_LENGTH) == 0);
62 char actual[SHA1_LENGTH]; local
73 make_mac(PKT_DATA, PKT_LEN, SHA1_LENGTH, &sha1, actual));
75 TEST_ASSERT_EQUAL_MEMORY(EXPECTED_DIGEST, actual, SHA1_LENGTH);
95 char actual[CMAC_LENGTH]; local
105 make_mac(PKT_DATA, PKT_LEN, CMAC_LENGTH, &cmac, actual));
107 TEST_ASSERT_EQUAL_MEMORY(EXPECTED_DIGEST, actual, CMAC_LENGTH);
252 char actual[MD5_LENGT local
[all...]
/freebsd-head/sys/dev/virtio/balloon/
H A Dvirtio_balloon.h48 uint32_t actual; member in struct:virtio_balloon_config
/freebsd-head/contrib/apr-util/test/
H A Dabts.c230 void abts_int_equal(abts_case *tc, const int expected, const int actual, int lineno) argument
235 if (expected == actual) return;
239 fprintf(stderr, "Line %d: expected <%d>, but saw <%d>\n", lineno, expected, actual);
244 void abts_int_nequal(abts_case *tc, const int expected, const int actual, int lineno) argument
249 if (expected != actual) return;
254 lineno, expected, actual);
259 void abts_str_equal(abts_case *tc, const char *expected, const char *actual, int lineno) argument
265 if (!expected && !actual) return;
266 if (expected && actual)
267 if (!strcmp(expected, actual)) retur
276 abts_str_nequal(abts_case *tc, const char *expected, const char *actual, size_t n, int lineno) argument
306 abts_ptr_equal(abts_case *tc, const void *expected, const void *actual, int lineno) argument
[all...]
H A Dabts.h72 void abts_int_equal(abts_case *tc, const int expected, const int actual, int lineno);
73 void abts_int_nequal(abts_case *tc, const int expected, const int actual, int lineno);
74 void abts_str_equal(abts_case *tc, const char *expected, const char *actual, int lineno);
75 void abts_str_nequal(abts_case *tc, const char *expected, const char *actual,
78 void abts_ptr_equal(abts_case *tc, const void *expected, const void *actual, int lineno);

Completed in 351 milliseconds

12345