Searched refs:expected (Results 1 - 25 of 41) sorted by relevance

12

/haiku/src/tools/cppunit/cppunit/
H A DTestAssert.cpp30 TestAssert::assertNotEqualImplementation( string expected, argument
35 Asserter::failNotEqual( expected,
43 TestAssert::assertEquals( double expected, argument
49 if (fabs (expected - actual) > delta)
50 assertNotEqualImplementation( assertion_traits<double>::toString(expected),
59 TestAssert::assertDoubleEquals( double expected,
64 Asserter::failNotEqualIf( fabs( expected - actual ) > delta,
65 assertion_traits<double>::toString(expected),
H A DAsserter.cpp34 failNotEqual( string expected, argument
39 throw NotEqualException( expected,
48 string expected,
54 failNotEqual( expected, actual, sourceLine, additionalMessage );
47 failNotEqualIf( bool shouldFail, string expected, string actual, SourceLine sourceLine, string additionalMessage ) argument
H A DNotEqualException.cpp8 NotEqualException::NotEqualException( string expected, argument
12 Exception( "Expected: " + expected +
16 m_expected( expected ),
27 NotEqualException::NotEqualException( string expected, argument
31 Exception( "Expected: " + expected + ", but was: " + actual,
34 m_expected( expected ),
/haiku/src/tests/system/libroot/posix/
H A DTestUnitUtils.h26 _assert_equals(const char* test, const Type& expected, const Type& actual, argument
29 if (actual == expected)
51 _assert_time_equals(const char* test, bigtime_t expected, argument
55 bigtime_t diff = actual > expected ? actual - expected : expected - actual;
56 if (diff <= expected / 20)
59 fprintf(stderr, "%s FAILED in line %d: expected time: %lld, actual: %lld\n",
60 test, lineNumber, (long long)expected, (long long)actual);
89 "code \"%s\" (0x%x), expected
[all...]
H A Dwcs_test.cpp42 size_t expected = 0; local
43 if (result != expected || errno != 0) {
44 printf("\tPROBLEM: result for wcslen(\"%ls\") = %lu (expected %lu),"
45 " errno = %x (expected %x)\n", string, result, expected,
54 size_t expected = 4; local
55 if (result != expected || errno != 0) {
56 printf("\tPROBLEM: result for wcslen(\"%ls\") = %lu (expected %lu),"
57 " errno = %x (expected %x)\n", string, result, expected,
66 size_t expected = 4; local
78 size_t expected = 2; local
90 size_t expected = 0; local
102 size_t expected = 4; local
114 size_t expected = 4; local
145 int expected = 0; local
158 int expected = -1; local
171 int expected = 1; local
184 int expected = 1; local
197 int expected = 0; local
210 int expected = -1; local
223 int expected = -1; local
236 int expected = 0; local
249 int expected = 0; local
262 int expected = 1; local
275 int expected = -1; local
306 int expected = 0; local
319 int expected = -1; local
332 int expected = 1; local
345 int expected = 0; local
358 int expected = 0; local
371 int expected = -1; local
384 int expected = 1; local
397 int expected = 0; local
410 int expected = 0; local
423 int expected = 1; local
436 int expected = -1; local
467 const wchar_t* expected = NULL; local
480 const wchar_t* expected = string; local
493 const wchar_t* expected = NULL; local
506 const wchar_t* expected = string + 4; local
519 const wchar_t* expected = string; local
532 const wchar_t* expected = NULL; local
545 const wchar_t* expected = string + 14; local
558 const wchar_t* expected = string; local
571 const wchar_t* expected = string; local
584 const wchar_t* expected = string + wcslen(string); local
597 const wchar_t* expected = string + 4; local
610 const wchar_t* expected = string; local
623 const wchar_t* expected = string + wcslen(string); local
636 const wchar_t* expected = string + 14; local
649 const wchar_t* expected = NULL; local
662 const wchar_t* expected = string; local
675 const wchar_t* expected = NULL; local
688 const wchar_t* expected = string + 9; local
701 const wchar_t* expected = string; local
714 const wchar_t* expected = NULL; local
727 const wchar_t* expected = string + 14; local
2741 const wchar_t* expected = NULL; local
2754 const wchar_t* expected = NULL; local
2767 const wchar_t* expected = string + 4; local
2780 const wchar_t* expected = string + 4; local
2793 const wchar_t* expected = string; local
2806 const wchar_t* expected = NULL; local
2837 size_t expected = 0; local
2850 size_t expected = 8; local
2863 size_t expected = 0; local
2876 size_t expected = 10; local
2889 size_t expected = wcslen(string); local
2902 size_t expected = wcslen(string); local
2933 size_t expected = 0; local
2946 size_t expected = 0; local
2959 size_t expected = 0; local
2972 size_t expected = wcslen(string); local
2985 size_t expected = 0; local
3016 const wchar_t* expected = NULL; local
3029 const wchar_t* expected = NULL; local
3042 const wchar_t* expected = NULL; local
3055 const wchar_t* expected = string; local
3068 const wchar_t* expected = string + 4; local
3081 const wchar_t* expected = string; local
3094 const wchar_t* expected = NULL; local
3125 wchar_t* expected = NULL; local
3150 wchar_t* expected = NULL; local
3175 wchar_t* expected = string; local
3230 wchar_t* expected = string + 1; local
3322 const wchar_t* expected = NULL; local
3335 const wchar_t* expected = NULL; local
3348 const wchar_t* expected = string; local
3361 const wchar_t* expected = NULL; local
3374 const wchar_t* expected = string + 4; local
3387 const wchar_t* expected = NULL; local
3400 const wchar_t* expected = NULL; local
3413 const wchar_t* expected = string + 5; local
3444 int expected = 0; local
3457 int expected = 0; local
3470 int expected = 0; local
3483 int expected = -1; local
3496 int expected = 1; local
3509 int expected = 1; local
3522 int expected = 0; local
3535 int expected = -1; local
3548 int expected = 0; local
[all...]
H A Dlocale_test.cpp80 "(expected \"%s\")\n",
95 "(expected \"%s\")\n", result, expectedResult);
130 printf("\tPROBLEM: lc.decimal_point = \"%s\" (expected \"%s\")\n",
135 printf("\tPROBLEM: lc.thousands_sep = \"%s\" (expected \"%s\")\n",
143 printf("\tPROBLEM: lc.grouping = \"%s\" (expected \"%s\")\n",
148 printf("\tPROBLEM: lc.int_curr_symbol = \"%s\" (expected \"%s\")\n",
153 printf("\tPROBLEM: lc.currency_symbol = \"%s\" (expected \"%s\")\n",
159 "(expected \"%s\")\n",
165 "(expected \"%s\")\n",
173 printf("\tPROBLEM: lc.mon_grouping: \"%s\" (expected \"
1766 test_localtime(const char* tz, time_t nowSecs, const tm& expected) argument
1841 test_gmtime(const char* tz, time_t nowSecs, const tm& expected) argument
1916 test_mktime(const char* tz, tm& tm, time_t expected, int expectedWeekDay, int expectedYearDay) argument
[all...]
/haiku/headers/tools/cppunit/cppunit/
H A DTestAssert.h59 void CPPUNIT_API assertNotEqualImplementation( std::string expected,
66 void assertEquals( const T& expected, argument
71 if ( !assertion_traits<T>::equal(expected,actual) ) // lazy toString conversion...
73 assertNotEqualImplementation( assertion_traits<T>::toString(expected),
80 void CPPUNIT_API assertEquals( double expected,
89 void assertEquals( const T& expected,
94 if ( !assertion_traits<T>::equal(expected,actual) ) // lazy toString conversion...
96 Asserter::failNotEqual( assertion_traits<T>::toString(expected),
103 void CPPUNIT_API assertDoubleEquals( double expected,
154 #define CPPUNIT_ASSERT_EQUAL(expected,actua
[all...]
H A DAsserter.h25 * string expected = XmlUniformiser( expectedXml ).stripped();
28 * if ( expected == actual )
31 * ::CppUnit::Asserter::failNotEqual( expected,
37 * #define CPPUNITTEST_ASSERT_XML_EQUAL( expected, actual ) \
38 * checkXmlEqual( expected, actual, \
61 * \param expected Text describing the expected value.
67 void CPPUNIT_API failNotEqual( std::string expected,
75 * \param expected Text describing the expected valu
[all...]
H A DNotEqualException.h16 * \param expected Text that represents the expected value.
22 NotEqualException( std::string expected,
28 NotEqualException( std::string expected,
/haiku/src/tests/add-ons/mail/imap/
H A Drfc3501_encoding_test.cpp14 assertEquals(const char* expected, const char* result) argument
16 if (strcmp(expected, result) != 0) {
17 printf("Expected \"%s\", got \"%s\"\n", expected, result);
/haiku/src/tests/kits/locale/
H A DDurationFormatTest.cpp31 BString expected; local
46 BString expected; local
59 expected << "1 week, 2 days, 6 hours, 13 minutes, 20 seconds";
61 CPPUNIT_ASSERT_EQUAL(expected, buffer);
69 expected << "1 semaine, 2 jours, 6 heures, 13 minutes, 20 secondes";
71 CPPUNIT_ASSERT_EQUAL(expected, buffer);
79 expected << "1 wk:2 days:6 hr:13 min:20 sec";
81 CPPUNIT_ASSERT_EQUAL(expected, buffer);
89 expected << "1 sem.:2 j:6 h:13 min:20 s";
91 CPPUNIT_ASSERT_EQUAL(expected, buffe
[all...]
H A DStringFormatTest.cpp35 const char* expected; member in struct:Test
89 CPPUNIT_ASSERT_EQUAL(BString(tests[i].expected), output);
/haiku/src/system/libroot/os/arch/generic/
H A Dgeneric_atomic.cpp28 atomic_test_and_set(int32_t* ptr, int32_t desired, int32_t expected) argument
31 obj.compare_exchange_strong(expected, desired);
32 return expected;
85 atomic_test_and_set64(int64_t* ptr, int64_t desired, int64_t expected) argument
88 obj.compare_exchange_strong(expected, desired);
89 return expected;
/haiku/src/tests/kits/net/service/
H A DDataTest.h38 void _RunTest(BString url, const char* expected,
H A DUrlTest.cpp173 } expected; member in struct:__anon2050
220 CPPUNIT_ASSERT_EQUAL(BString(kTestExplode[testIndex].expected.protocol),
222 CPPUNIT_ASSERT_EQUAL(BString(kTestExplode[testIndex].expected.userName),
224 CPPUNIT_ASSERT_EQUAL(BString(kTestExplode[testIndex].expected.password),
226 CPPUNIT_ASSERT_EQUAL(BString(kTestExplode[testIndex].expected.host),
228 CPPUNIT_ASSERT_EQUAL(kTestExplode[testIndex].expected.port,
230 CPPUNIT_ASSERT_EQUAL(BString(kTestExplode[testIndex].expected.path),
232 CPPUNIT_ASSERT_EQUAL(BString(kTestExplode[testIndex].expected.request),
234 CPPUNIT_ASSERT_EQUAL(BString(kTestExplode[testIndex].expected.fragment),
H A DCookieTest.cpp728 } expected; member in struct:Test
770 CPPUNIT_ASSERT(tests[i].expected.valid == cookie.IsValid());
772 if (!tests[i].expected.valid)
775 CPPUNIT_ASSERT_EQUAL(BString(tests[i].expected.name), cookie.Name());
776 CPPUNIT_ASSERT_EQUAL(BString(tests[i].expected.value), cookie.Value());
777 CPPUNIT_ASSERT_EQUAL(BString(tests[i].expected.domain),
779 CPPUNIT_ASSERT_EQUAL(BString(tests[i].expected.path), cookie.Path());
780 CPPUNIT_ASSERT(tests[i].expected.secure == cookie.Secure());
781 CPPUNIT_ASSERT(tests[i].expected.httponly == cookie.HttpOnly());
782 CPPUNIT_ASSERT(tests[i].expected
[all...]
/haiku/src/tests/servers/registrar/
H A Dmessage_deliverer_test.cpp49 uint32 expected = sExpectedMessages[sExpectedMessageIndex++]; local
50 if (what != expected) {
51 printf("Unexpected message '%.4s', expected was: '%.4s'\n",
52 (char*)&what, (char*)&expected);
/haiku/src/tests/kits/support/blocker/
H A DSemaphoreLockCountTest1.cpp67 bool SemaphoreLockCountTest1::CheckLockRequests(int expected) argument
70 return(actual == expected);
H A DBenaphoreLockCountTest1.cpp71 bool BenaphoreLockCountTest1::CheckLockRequests(int expected) argument
74 return(actual == expected);
/haiku/src/system/libroot/os/arch/arm/
H A Dstdatomic.c153 __atomic_compare_exchange_##N(uintN_t *mem, uintN_t *expected, \
159 if (*mem == *expected) { \
163 *expected = *mem; \
258 uint32_t expected, old, temp, ras_start; \
260 expected = *pexpected; \
271 "\tcmp %0, %3\n" /* Compare to expected value. */\
281 : "r" (expected), "r" (desired), "m" (*mem), \
283 if (old == expected) { \
491 __sync_val_compare_and_swap_##N##_c(uintN_t *mem, uintN_t expected, \
500 put_##N(&expected32, mem, expected); \
623 __sync_val_compare_and_swap_4_c(uint32_t *mem, uint32_t expected, uint32_t desired) argument
[all...]
/haiku/src/tests/kits/app/broster/
H A DGetAppListTester.cpp49 const BList &expected)
60 int32 expectedCount = expected.CountItems();
62 // toCheck must contain all elements of extendedBase and expected
65 list.AddList((BList*)&expected);
73 check_list(const BList &toCheck, const BList &base, const BList &expected) argument
75 check_list(toCheck, base, base, expected);
81 check_list(const BList &toCheck, const BList &expected) argument
84 check_list(toCheck, base, expected);
48 check_list(const BList &toCheck, const BList &base, const BList &extendedBase, const BList &expected) argument
/haiku/src/tests/misc/exception-test/
H A Dexception-test.cpp143 test(string (*catcher)(void (*)()), void (*thrower)(), const char *expected) argument
146 if (caught != expected) {
147 printf("ERROR: expected exception: %s, but caught: %s\n", expected,
/haiku/src/add-ons/media/plugins/ape_reader/MAClib/
H A DTools.inc64 %error expected 'proc' before 'endproc'.
/haiku/src/add-ons/mail_daemon/inbound_protocols/imap/imap_lib/
H A DResponse.cpp404 ExpectedParseException::ExpectedParseException(char expected, char instead) argument
409 CharToString(bufferA, sizeof(bufferA), expected),
666 Response::Consume(BDataIO& stream, char expected) argument
669 if (c != expected)
670 throw ExpectedParseException(expected, c);
/haiku/src/kits/shared/
H A DExpressionParser.cpp274 throw ParseException("expected hex digit", _CurrentPos());
758 BString expected; local
761 expected = "an identifier";
765 expected = "a constant";
779 expected << "'" << (char)type << "'";
783 expected = "'/', '\\', or ':'";
787 expected = "'\\n'";
791 temp << "Expected " << expected.String() << " got '" << token.string << "'";

Completed in 249 milliseconds

12