MCPcopy Create free account
hub / github.com/bblanchon/ArduinoJson / checkInteger

Function checkInteger

extras/tests/Numbers/parseInteger.cpp:12–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10
11template <typename T>
12void checkInteger(const char* input, T expected) {
13 CAPTURE(input);
14 T actual = parseNumber<T>(input);
15 REQUIRE(expected == actual);
16}
17
18TEST_CASE("parseNumber<int8_t>()") {
19 checkInteger<int8_t>("-128", -128);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected