diff options
author | Fred Hornsey <hornseyf@objectcomputing.com> | 2021-06-14 15:58:44 -0500 |
---|---|---|
committer | Fred Hornsey <hornseyf@objectcomputing.com> | 2021-06-14 15:58:44 -0500 |
commit | 737b9195ece838d15d4c6d54300026a26e5d1c44 (patch) | |
tree | e05729f4a2db94dd3d062141ecec84c417d0be73 /TAO/tests | |
parent | 2afc6a2c504ab9a80a54c2d71efea83a0d5085c9 (diff) | |
download | ATCD-737b9195ece838d15d4c6d54300026a26e5d1c44.tar.gz |
Partially Respond to Review of #840
https://github.com/DOCGroup/ACE_TAO/pull/840
Diffstat (limited to 'TAO/tests')
-rw-r--r-- | TAO/tests/IDLv4/explicit_ints/main.cpp | 74 |
1 files changed, 37 insertions, 37 deletions
diff --git a/TAO/tests/IDLv4/explicit_ints/main.cpp b/TAO/tests/IDLv4/explicit_ints/main.cpp index 9540764b58c..075608ee540 100644 --- a/TAO/tests/IDLv4/explicit_ints/main.cpp +++ b/TAO/tests/IDLv4/explicit_ints/main.cpp @@ -5,7 +5,7 @@ namespace stream8 { std::ostream & - operator<< (std::ostream &os, CORBA::Uint8 value) { + operator<< (std::ostream &os, CORBA::UInt8 value) { return os << static_cast<unsigned>(value); } @@ -34,46 +34,46 @@ ACE_TMAIN (int, ACE_TCHAR *[]) { bool any_failed = false; - expect_equals<CORBA::Uint8>(any_failed, "u8_max", u8_max, 255); - expect_equals<CORBA::Int8>(any_failed, "i8_min", i8_min, -128); - expect_equals<CORBA::Int8>(any_failed, "i8_max", i8_max, 127); - expect_equals<CORBA::Uint16>(any_failed, "u16_max", u16_max, 65535); - expect_equals<CORBA::Int16>(any_failed, "i16_min", i16_min, -32768); - expect_equals<CORBA::Int16>(any_failed, "i16_max", i16_max, 32767); - expect_equals<CORBA::Uint32>(any_failed, "u32_max", u32_max, 4294967295); - expect_equals<CORBA::Int32>(any_failed, "i32_min", i32_min, -2147483648); - expect_equals<CORBA::Int32>(any_failed, "i32_max", i32_max, 2147483647); - expect_equals<CORBA::Uint64>(any_failed, "u64_max", u64_max, 18446744073709551615ULL); - expect_equals<CORBA::Int64>(any_failed, "i64_min", i64_min, (-9223372036854775807 - 1)); - expect_equals<CORBA::Int64>(any_failed, "i64_max", i64_max, 9223372036854775807); + expect_equals<CORBA::UInt8> (any_failed, "u8_max", u8_max, 255); + expect_equals<CORBA::Int8> (any_failed, "i8_min", i8_min, -128); + expect_equals<CORBA::Int8> (any_failed, "i8_max", i8_max, 127); + expect_equals<CORBA::Uint16> (any_failed, "u16_max", u16_max, 65535); + expect_equals<CORBA::Int16> (any_failed, "i16_min", i16_min, -32768); + expect_equals<CORBA::Int16> (any_failed, "i16_max", i16_max, 32767); + expect_equals<CORBA::Uint32> (any_failed, "u32_max", u32_max, 4294967295); + expect_equals<CORBA::Int32> (any_failed, "i32_min", i32_min, -2147483648); + expect_equals<CORBA::Int32> (any_failed, "i32_max", i32_max, 2147483647); + expect_equals<CORBA::Uint64> (any_failed, "u64_max", u64_max, 18446744073709551615ULL); + expect_equals<CORBA::Int64> (any_failed, "i64_min", i64_min, (-9223372036854775807 - 1)); + expect_equals<CORBA::Int64> (any_failed, "i64_max", i64_max, 9223372036854775807); - expect_equals<CORBA::Uint8>(any_failed, "u8_min_overflow", u8_min_overflow, u8_max); - expect_equals<CORBA::Int8>(any_failed, "i8_min_overflow", i8_min_overflow, i8_max); - expect_equals<CORBA::Uint8>(any_failed, "u8_max_overflow", u8_max_overflow, 0); - expect_equals<CORBA::Int8>(any_failed, "i8_max_overflow", i8_max_overflow, i8_min); + expect_equals<CORBA::UInt8> (any_failed, "u8_min_overflow", u8_min_overflow, u8_max); + expect_equals<CORBA::Int8> (any_failed, "i8_min_overflow", i8_min_overflow, i8_max); + expect_equals<CORBA::UInt8> (any_failed, "u8_max_overflow", u8_max_overflow, 0); + expect_equals<CORBA::Int8> (any_failed, "i8_max_overflow", i8_max_overflow, i8_min); - expect_equals<CORBA::Uint8>(any_failed, "u8_max_negate", u8_max_negate, 0); - expect_equals<CORBA::Int8>(any_failed, "i8_max_negate", i8_max_negate, i8_min); + expect_equals<CORBA::UInt8> (any_failed, "u8_max_negate", u8_max_negate, 0); + expect_equals<CORBA::Int8> (any_failed, "i8_max_negate", i8_max_negate, i8_min); - expect_equals<CORBA::Uint8>(any_failed, "u8_e1", u8_e1, 2); - expect_equals<CORBA::Uint8>(any_failed, "u8_e2", u8_e2, 4); - expect_equals<CORBA::Uint8>(any_failed, "u8_e3", u8_e3, 12); - expect_equals<CORBA::Uint8>(any_failed, "u8_e4", u8_e4, 3); - expect_equals<CORBA::Uint8>(any_failed, "u8_e5", u8_e5, 7); - expect_equals<CORBA::Uint8>(any_failed, "u8_e6", u8_e6, 1); - expect_equals<CORBA::Uint8>(any_failed, "u8_e7", u8_e7, 1); - expect_equals<CORBA::Uint8>(any_failed, "u8_e8", u8_e8, 16); - expect_equals<CORBA::Uint8>(any_failed, "u8_e9", u8_e9, 8); + expect_equals<CORBA::UInt8> (any_failed, "u8_e1", u8_e1, 2); + expect_equals<CORBA::UInt8> (any_failed, "u8_e2", u8_e2, 4); + expect_equals<CORBA::UInt8> (any_failed, "u8_e3", u8_e3, 12); + expect_equals<CORBA::UInt8> (any_failed, "u8_e4", u8_e4, 3); + expect_equals<CORBA::UInt8> (any_failed, "u8_e5", u8_e5, 7); + expect_equals<CORBA::UInt8> (any_failed, "u8_e6", u8_e6, 1); + expect_equals<CORBA::UInt8> (any_failed, "u8_e7", u8_e7, 1); + expect_equals<CORBA::UInt8> (any_failed, "u8_e8", u8_e8, 16); + expect_equals<CORBA::UInt8> (any_failed, "u8_e9", u8_e9, 8); - expect_equals<CORBA::Int8>(any_failed, "i8_e1", i8_e1, -2); - expect_equals<CORBA::Int8>(any_failed, "i8_e2", i8_e2, 4); - expect_equals<CORBA::Int8>(any_failed, "i8_e3", i8_e3, 12); - expect_equals<CORBA::Int8>(any_failed, "i8_e4", i8_e4, 3); - expect_equals<CORBA::Int8>(any_failed, "i8_e5", i8_e5, 7); - expect_equals<CORBA::Int8>(any_failed, "i8_e6", i8_e6, 1); - expect_equals<CORBA::Int8>(any_failed, "i8_e7", i8_e7, 1); - expect_equals<CORBA::Int8>(any_failed, "i8_e8", i8_e8, 16); - expect_equals<CORBA::Int8>(any_failed, "i8_e9", i8_e9, 8); + expect_equals<CORBA::Int8> (any_failed, "i8_e1", i8_e1, -2); + expect_equals<CORBA::Int8> (any_failed, "i8_e2", i8_e2, 4); + expect_equals<CORBA::Int8> (any_failed, "i8_e3", i8_e3, 12); + expect_equals<CORBA::Int8> (any_failed, "i8_e4", i8_e4, 3); + expect_equals<CORBA::Int8> (any_failed, "i8_e5", i8_e5, 7); + expect_equals<CORBA::Int8> (any_failed, "i8_e6", i8_e6, 1); + expect_equals<CORBA::Int8> (any_failed, "i8_e7", i8_e7, 1); + expect_equals<CORBA::Int8> (any_failed, "i8_e8", i8_e8, 16); + expect_equals<CORBA::Int8> (any_failed, "i8_e9", i8_e9, 8); return any_failed ? 1 : 0; } |