| 393 | #endif |
| 394 | |
| 395 | void |
| 396 | checkValues(const Values& expected, const Values& observed) |
| 397 | { |
| 398 | ACE_TCHAR ebuffer[512]; |
| 399 | ACE_TCHAR obuffer[512]; |
| 400 | if (expected.charValue != observed.charValue) { |
| 401 | std::cout << "char values not correct after insertion and extraction." << std::endl; |
| 402 | std::cout << "(expected: " << expected.charValue << ", observed: " << observed.charValue << ")." << std::endl; |
| 403 | failed = true; |
| 404 | } |
| 405 | if (expected.doubleValue != observed.doubleValue) { |
| 406 | std::cout << "double values not correct after insertion and extraction." << std::endl; |
| 407 | std::cout << "(expected: " << expected.doubleValue << ", observed: " << observed.doubleValue << ")." << std::endl; |
| 408 | failed = true; |
| 409 | } |
| 410 | if (expected.floatValue != observed.floatValue) { |
| 411 | std::cout << "float values not correct after insertion and extraction." << std::endl; |
| 412 | std::cout << "(expected: " << expected.floatValue << ", observed: " << observed.floatValue << ")." << std::endl; |
| 413 | failed = true; |
| 414 | } |
| 415 | if (expected.longdoubleValue != observed.longdoubleValue) { |
| 416 | std::cout << "longdouble values not correct after insertion and extraction." << std::endl; |
| 417 | // std::cout << "(expected: " << expected.longdoubleValue << ", observed: " << observed.longdoubleValue << ")." << std::endl; |
| 418 | failed = true; |
| 419 | } |
| 420 | if (expected.longlongValue != observed.longlongValue) { |
| 421 | std::cout << "longlong values not correct after insertion and extraction." << std::endl; |
| 422 | //std::cout << "(expected: " << expected.longlongValue << ", observed: " << observed.longlongValue << ")." << std::endl; |
| 423 | failed = true; |
| 424 | } |
| 425 | if (expected.longValue != observed.longValue) { |
| 426 | std::cout << "long values not correct after insertion and extraction." << std::endl; |
| 427 | std::cout << "(expected: " << expected.longValue << ", observed: " << observed.longValue << ")." << std::endl; |
| 428 | failed = true; |
| 429 | } |
| 430 | if (expected.octetValue != observed.octetValue) { |
| 431 | std::cout << "octet values not correct after insertion and extraction." << std::endl; |
| 432 | std::cout << "(expected: " << expected.octetValue << ", observed: " << observed.octetValue << ")." << std::endl; |
| 433 | failed = true; |
| 434 | } |
| 435 | #if OPENDDS_HAS_EXPLICIT_INTS |
| 436 | if (expected.int8Value != observed.int8Value) { |
| 437 | std::cout << "int8 values not correct after insertion and extraction." << std::endl |
| 438 | << "(expected: " << expected.int8Value << ", observed: " << observed.int8Value |
| 439 | << ")." << std::endl; |
| 440 | failed = true; |
| 441 | } |
| 442 | #endif |
| 443 | if (expected.shortValue != observed.shortValue) { |
| 444 | std::cout << "short values not correct after insertion and extraction." << std::endl; |
| 445 | std::cout << "(expected: " << expected.shortValue << ", observed: " << observed.shortValue << ")." << std::endl; |
| 446 | failed = true; |
| 447 | } |
| 448 | if (expected.ulonglongValue != observed.ulonglongValue) { |
| 449 | std::cout << "ulonglong values not correct after insertion and extraction." << std::endl; |
| 450 | //std::cout << "(expected: " << expected.ulonglongValue << ", observed: " << observed.ulonglongValue << ")." << std::endl; |
| 451 | failed = true; |
| 452 | } |
no test coverage detected