MCPcopy Create free account
hub / github.com/dmlc/xgboost / TEST

Function TEST

tests/cpp/common/test_charconv.cc:51–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49} // anonymous namespace
50
51TEST(Ryu, Subnormal) {
52 TestRyu("0E0", 0.0f);
53 TestRyu("-0E0", -0.0f);
54 TestRyu("1E0", 1.0f);
55 TestRyu("-1E0", -1.0f);
56 TestRyu("NaN", NAN);
57 TestRyu("Infinity", INFINITY);
58 TestRyu("-Infinity", -INFINITY);
59
60 TestRyu("1E-45", std::numeric_limits<float>::denorm_min());
61}
62
63TEST(Ryu, Denormal) {
64 TestRyu("1E-45", std::numeric_limits<float>::denorm_min());

Callers

nothing calls this directly

Calls 7

TestRyuFunction · 0.85
Int32Bits2FloatFunction · 0.85
to_charsFunction · 0.85
from_charsFunction · 0.85
TestIntegerFunction · 0.85
TestRyuParseFunction · 0.85
c_strMethod · 0.80

Tested by

no test coverage detected