xo-flatstring: + __int128 printer
This commit is contained in:
parent
23a9a647c7
commit
8afe90afd6
2 changed files with 51 additions and 0 deletions
|
|
@ -1,6 +1,7 @@
|
|||
/** @file flatstring.utest.cpp **/
|
||||
|
||||
#include "xo/flatstring/flatstring.hpp"
|
||||
#include "xo/flatstring/int128_iostream.hpp"
|
||||
#include "xo/indentlog/scope.hpp"
|
||||
#include "xo/indentlog/print/tag.hpp"
|
||||
#include "xo/indentlog/print/hex.hpp"
|
||||
|
|
@ -419,6 +420,25 @@ namespace xo {
|
|||
|
||||
} /*TEST_CASE(flatstring)*/
|
||||
|
||||
TEST_CASE("flatstring_int128", "[flatstring]") {
|
||||
//constexpr bool c_debug_flag = false;
|
||||
|
||||
// can get bits from /dev/random by uncommenting the 2nd line below
|
||||
//uint64_t seed = xxx;
|
||||
//rng::Seed<xoshio256ss> seed;
|
||||
|
||||
//auto rng = xo::rng::xoshiro256ss(seed);
|
||||
|
||||
//scope log(XO_DEBUG2(c_debug_flag, "TEST_CASE.flatstring_int128"));
|
||||
//log && log("(A)", xtag("foo", foo));
|
||||
|
||||
__int128_t x = 65536UL*65536UL*65536UL*65536UL*65536UL;
|
||||
|
||||
stringstream ss;
|
||||
ss << x;
|
||||
} /*TEST_CASE(flatstring_int128)*/
|
||||
|
||||
|
||||
} /*namespace ut*/
|
||||
} /*namespace xo*/
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue