| 28 | namespace xgboost { |
| 29 | namespace { |
| 30 | void TestInteger(char const* res, int64_t i) { |
| 31 | char result[xgboost::NumericLimits<int64_t>::kToCharsSize]; |
| 32 | auto ret = to_chars(result, result + sizeof(result), i); |
| 33 | *ret.ptr = '\0'; |
| 34 | EXPECT_STREQ(res, result); |
| 35 | } |
| 36 | |
| 37 | static float Int32Bits2Float(uint32_t bits) { |
| 38 | float f; |