mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 16:14:11 +01:00 
			
		
		
		
	Append terminator in saveStringFromFreeZone()
				
					
				
			This commit is contained in:
		| @@ -18,7 +18,6 @@ static void testCodepoint(uint32_t codepoint, std::string expected) { | ||||
|   CAPTURE(codepoint); | ||||
|   Utf8::encodeCodepoint(codepoint, str); | ||||
|  | ||||
|   str.append('\0'); | ||||
|   REQUIRE(str.str().c_str() == expected); | ||||
| } | ||||
|  | ||||
|   | ||||
| @@ -60,6 +60,7 @@ TEST_CASE("Printable") { | ||||
|       CHECK(printable.totalBytesWritten() == 7); | ||||
|       CHECK(doc.overflowed() == false); | ||||
|       CHECK(doc.memoryUsage() == 8); | ||||
|       CHECK(doc.as<JsonVariant>().memoryUsage() == 8); | ||||
|     } | ||||
|  | ||||
|     SECTION("Via Print::write(const char* size_t)") { | ||||
| @@ -69,6 +70,7 @@ TEST_CASE("Printable") { | ||||
|       CHECK(printable.totalBytesWritten() == 7); | ||||
|       CHECK(doc.overflowed() == false); | ||||
|       CHECK(doc.memoryUsage() == 8); | ||||
|       CHECK(doc.as<JsonVariant>().memoryUsage() == 8); | ||||
|     } | ||||
|   } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user