| 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; |
nothing calls this directly
no test coverage detected