| 11 | using namespace ArduinoJson::detail; |
| 12 | |
| 13 | void checkFloat(const char* input, float expected) { |
| 14 | CAPTURE(input); |
| 15 | auto result = parseNumber(input); |
| 16 | REQUIRE(result.type() == NumberType::Float); |
| 17 | REQUIRE(result.asFloat() == Approx(expected)); |
| 18 | } |
| 19 | |
| 20 | void checkFloatNaN(const char* input) { |
| 21 | CAPTURE(input); |
no test coverage detected