MCPcopy Create free account
hub / github.com/fmtlib/fmt / TEST

Function TEST

test/format-impl-test.cc:24–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22static_assert(!std::is_copy_assignable<bigint>::value, "");
23
24TEST(bigint_test, construct) {
25 EXPECT_EQ(fmt::to_string(bigint()), "");
26 EXPECT_EQ(fmt::to_string(bigint(0x42)), "42");
27 EXPECT_EQ(fmt::to_string(bigint(0x123456789abcedf0)), "123456789abcedf0");
28}
29
30TEST(bigint_test, compare) {
31 bigint n1(42);

Callers

nothing calls this directly

Calls 15

to_stringFunction · 0.85
bigintClass · 0.85
compareFunction · 0.85
normalizeFunction · 0.85
floor_log10_pow2Function · 0.85
format_error_codeFunction · 0.85
stringClass · 0.85
countl_zeroFunction · 0.85
double_doubleClass · 0.85
slow_floatClass · 0.85
unicode_is_surrogateFunction · 0.85
utf8_encodeFunction · 0.85

Tested by

no test coverage detected