MCPcopy Create free account
hub / github.com/boostorg/beast / testToStaticString

Method testToStaticString

test/beast/core/static_string.cpp:1445–1464  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1443 }
1444
1445 void
1446 testToStaticString()
1447 {
1448 BEAST_EXPECT(to_static_string<long>(0) == "0");
1449 BEAST_EXPECT(to_static_string<long>(1) == "1");
1450 BEAST_EXPECT(to_static_string<long>(0xffff) == "65535");
1451 BEAST_EXPECT(to_static_string<long>(0x10000) == "65536");
1452 BEAST_EXPECT(to_static_string<long long>(0xffffffff) == "4294967295");
1453
1454 BEAST_EXPECT(to_static_string<long>(-1) == "-1");
1455 BEAST_EXPECT(to_static_string<long>(-65535) == "-65535");
1456 BEAST_EXPECT(to_static_string<long>(-65536) == "-65536");
1457 BEAST_EXPECT(to_static_string<long long>(-4294967295ll) == "-4294967295");
1458
1459 BEAST_EXPECT(to_static_string<unsigned long>(0) == "0");
1460 BEAST_EXPECT(to_static_string<unsigned long>(1) == "1");
1461 BEAST_EXPECT(to_static_string<unsigned long>(0xffff) == "65535");
1462 BEAST_EXPECT(to_static_string<unsigned long>(0x10000) == "65536");
1463 BEAST_EXPECT(to_static_string<unsigned long>(0xffffffff) == "4294967295");
1464 }
1465
1466 void
1467 run() override

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected