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

Method testDoubleEdgeCases

tests/test_validation.cpp:363–373  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

361 }
362
363 void testDoubleEdgeCases() {
364 bool ok;
365 fmt::parseValue(NodeKind::Double, "1.7976931348623157e+308", &ok);
366 QVERIFY(ok);
367
368 fmt::parseValue(NodeKind::Double, "abc", &ok);
369 QVERIFY(!ok);
370
371 fmt::parseValue(NodeKind::Double, "1,5", &ok);
372 QVERIFY(ok); // EU comma
373 }
374
375 // ── Bool: only "true"/"false"/"0"/"1" are valid ──
376

Callers

nothing calls this directly

Calls 1

parseValueFunction · 0.85

Tested by

no test coverage detected