29 #define CATCH_CONFIG_MAIN
30 #include <catch2/catch_amalgamated.hpp>
55 uint64_t u64_1 = 1116791496961ull;
56 void * p_v_1 = (
void *)0xAFFE;
57 float float_1 = 1.65f;
61 CHECK(
"1" == jau::to_string<int>(i1) );
63 if(
sizeof(p_v_1) == 8 ) {
65 }
else if(
sizeof(p_v_1) == 4 ) {
84 vec_int_1.push_back(1); vec_int_1.push_back(2); vec_int_1.push_back(3);
86 uint8_t* vec_int_citer_1B_ptr = (uint8_t*)(vec_int_citer_1B.operator->());
87 std::string vec_int_citer_1B_str =
to_hexstring(vec_int_citer_1B_ptr);
90 uint8_t* vec_int_citer_1E_ptr = (uint8_t*)(vec_int_citer_1E.operator->());
91 std::string vec_int_citer_1E_str =
to_hexstring(vec_int_citer_1E_ptr);
93 std::ptrdiff_t vec_int_citer_1E_1B_ptrdiff = vec_int_citer_1E_ptr - vec_int_citer_1B_ptr;
94 int vec_int_citer_1E_1B_ptr_count = vec_int_citer_1E_1B_ptrdiff /
sizeof(int);
95 int vec_int_citer_1E_1B_itr_count = vec_int_citer_1E - vec_int_citer_1B;
97 printf(
"vec_int_citer_1E - vec_int_citer_1B = itr_count %d, ptr_count %d\n",
98 vec_int_citer_1E_1B_itr_count, vec_int_citer_1E_1B_ptr_count);
99 printf(
"vec_int_citer_1E - vec_int_citer_1B = %d\n", vec_int_citer_1E_1B_itr_count);
100 printf(
"vec_int_citer_1B_ptr %s, vec_int_citer_1E1_ptr = %s\n", vec_int_citer_1B_str.c_str(), vec_int_citer_1E_str.c_str());
102 CHECK(vec_int_citer_1E_1B_itr_count == 3);
103 CHECK(vec_int_citer_1E_1B_itr_count == vec_int_citer_1E_1B_ptr_count);
105 CHECK( vec_int_citer_1E_str ==
jau::to_string(vec_int_citer_1E) );