MCPcopy Create free account
hub / github.com/bytedance/sonic-cpp / TestF64toa

Function TestF64toa

tests/ftoa_test.cpp:35–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33using namespace sonic_json;
34
35static void TestF64toa(const std::string& expect, double val) {
36 char out[32];
37 int len = F64toa(out, val);
38 out[len] = '\0';
39 EXPECT_STREQ(expect.data(), out);
40 EXPECT_EQ(expect.size(), len);
41}
42
43static double int64Bits2Double(uint64_t bits) {
44 double f;

Callers 1

TESTFunction · 0.85

Calls 1

F64toaFunction · 0.85

Tested by

no test coverage detected