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

Function TEST

tests/itoa_test.cpp:47–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47TEST(U64toa, Basic) {
48 TestU64toa("0", 0);
49 TestU64toa("1", 1);
50 TestU64toa("12", 12);
51 TestU64toa("123", 123);
52 TestU64toa("1234", 1234);
53 TestU64toa("12345", 12345);
54 TestU64toa("123456", 123456);
55 TestU64toa("1234567", 1234567);
56 TestU64toa("12345678", 12345678);
57 TestU64toa("123456789", 123456789);
58 TestU64toa("1234567890", 1234567890);
59 TestU64toa("12345678901", 12345678901);
60 TestU64toa("123456789012", 123456789012);
61 TestU64toa("1234567890123", 1234567890123);
62 TestU64toa("12345678901234", 12345678901234);
63 TestU64toa("123456789012345", 123456789012345);
64 TestU64toa("1234567890123456", 1234567890123456ull);
65 TestU64toa("12345678901234567", 12345678901234567ull);
66 TestU64toa("123456789012345678", 123456789012345678ull);
67 TestU64toa("1234567890123456789", 1234567890123456789ull);
68 TestU64toa("12345678901234567890", 12345678901234567890ull);
69 TestU64toa("18446744073709551615", UINT64_MAX);
70}
71
72TEST(I64toa, Basic) {
73 TestI64toa("0", 0);

Callers

nothing calls this directly

Calls 2

TestU64toaFunction · 0.85
TestI64toaFunction · 0.85

Tested by

no test coverage detected