mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 16:14:11 +01:00 
			
		
		
		
	Added a test that appends special chars
This commit is contained in:
		| @@ -29,12 +29,18 @@ namespace JsonGeneratorTests | |||||||
|             assertResultIs(""); |             assertResultIs(""); | ||||||
|         } |         } | ||||||
|  |  | ||||||
|         TEST_METHOD(AppendString) |         TEST_METHOD(AppendOneString) | ||||||
|         { |         { | ||||||
|             append("ABCD"); |             append("ABCD"); | ||||||
|             assertResultIs("ABCD"); |             assertResultIs("ABCD"); | ||||||
|         } |         } | ||||||
|  |  | ||||||
|  |         TEST_METHOD(AppendSpecialChars) | ||||||
|  |         { | ||||||
|  |             append("\\\"\/\b\f\n\r"); | ||||||
|  |             assertResultIs("\\\"\/\b\f\n\r"); | ||||||
|  |         } | ||||||
|  |  | ||||||
|         void append(const char* s) |         void append(const char* s) | ||||||
|         { |         { | ||||||
|             sb->append(s); |             sb->append(s); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user