mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 16:14:11 +01:00 
			
		
		
		
	Added a test that adds a boolean to a full array
This commit is contained in:
		| @@ -86,6 +86,15 @@ namespace JsonGeneratorTests | ||||
|             AssertJsonIs("[false,true]"); | ||||
|         } | ||||
|  | ||||
|         TEST_METHOD(AddOneBooleanOverCapacity) | ||||
|         { | ||||
|             arr.add(false); | ||||
|             arr.add(true); | ||||
|             arr.add(false); | ||||
|  | ||||
|             AssertJsonIs("[false,true]"); | ||||
|         } | ||||
|  | ||||
|         void AssertJsonIs(const char* expected) | ||||
|         {       | ||||
|             char buffer[256]; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user