diff --git a/tests/src/datastructure_tests.cpp b/tests/src/datastructure_tests.cpp index 7b5141b..9e1663c 100644 --- a/tests/src/datastructure_tests.cpp +++ b/tests/src/datastructure_tests.cpp @@ -118,7 +118,21 @@ namespace blt // auto min = static_cast(std::log10(min_size)); // for (size_t i = min; i <= max; i++) // run_size(exp(10, i)); - + + double d = -1; + char data[sizeof(d)]{}; + long v = 0; + std::memcpy(data, &d, sizeof(d)); + blt::mem::fromBytes(data, v); + for (int i = 0; i < 64; i++) + { + if (i == 1 || i == 12) + std::cout << ' '; + std::cout << ((v >> i) & 0x1); + } + std::cout << std::endl; + + BLT_TRACE("%s", std::to_string(1.0/27.0).c_str()); } } \ No newline at end of file