| 10 | using namespace ArduinoJson::detail; |
| 11 | |
| 12 | static void testCodepoint(uint32_t codepoint, std::string expected) { |
| 13 | ResourceManager resources; |
| 14 | StringBuilder str(&resources); |
| 15 | str.startString(); |
| 16 | |
| 17 | CAPTURE(codepoint); |
| 18 | Utf8::encodeCodepoint(codepoint, str); |
| 19 | |
| 20 | REQUIRE(str.str().c_str() == expected); |
| 21 | } |
| 22 | |
| 23 | TEST_CASE("Utf8::encodeCodepoint()") { |
| 24 | SECTION("U+0000") { |
no test coverage detected