| 269 | } |
| 270 | |
| 271 | void testUInt64Max() { |
| 272 | bool ok; |
| 273 | // UINT64_MAX = 18446744073709551615 |
| 274 | fmt::parseValue(NodeKind::UInt64, "18446744073709551615", &ok); |
| 275 | QVERIFY(ok); |
| 276 | |
| 277 | // Beyond UINT64_MAX should fail to parse |
| 278 | fmt::parseValue(NodeKind::UInt64, "18446744073709551616", &ok); |
| 279 | QVERIFY2(!ok, "UINT64_MAX+1 should fail"); |
| 280 | |
| 281 | fmt::parseValue(NodeKind::UInt64, "0xFFFFFFFFFFFFFFFF", &ok); |
| 282 | QVERIFY(ok); |
| 283 | } |
| 284 | |
| 285 | // ── Invalid characters in numeric fields ── |
| 286 |
nothing calls this directly
no test coverage detected