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

Method testUInt64Max

tests/test_validation.cpp:271–283  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

parseValueFunction · 0.85

Tested by

no test coverage detected