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

Method testUInt32Overflow

tests/test_validation.cpp:262–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260 }
261
262 void testUInt32Overflow() {
263 bool ok;
264 fmt::parseValue(NodeKind::UInt32, "4294967295", &ok);
265 QVERIFY(ok);
266
267 fmt::parseValue(NodeKind::UInt32, "4294967296", &ok);
268 QVERIFY2(!ok, "4294967296 overflows uint32");
269 }
270
271 void testUInt64Max() {
272 bool ok;

Callers

nothing calls this directly

Calls 1

parseValueFunction · 0.85

Tested by

no test coverage detected