MCPcopy Create free account
hub / github.com/IChooseYou/Reclass / testFmtInt32

Method testFmtInt32

tests/test_format.cpp:15–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13 }
14
15 void testFmtInt32() {
16 // fmtInt32 outputs hex representation (0xffffffd6 for -42)
17 QCOMPARE(fmt::fmtInt32(-42), QString("0xffffffd6"));
18 QCOMPARE(fmt::fmtInt32(0), QString("0x0"));
19 }
20
21 void testFmtFloat() {
22 QString s = fmt::fmtFloat(3.14159f);

Callers

nothing calls this directly

Calls 1

fmtInt32Function · 0.85

Tested by

no test coverage detected