mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 16:14:11 +01:00 
			
		
		
		
	Generator: added a test of an array with too many numbers
This commit is contained in:
		| @@ -55,6 +55,15 @@ namespace JsonGeneratorTests | |||||||
|             AssertJsonIs("[3.14,2.72]"); |             AssertJsonIs("[3.14,2.72]"); | ||||||
|         } |         } | ||||||
|  |  | ||||||
|  |         TEST_METHOD(AddOneNumberOverCapacity) | ||||||
|  |         { | ||||||
|  |             arr.add(3.14); | ||||||
|  |             arr.add(2.72); | ||||||
|  |             arr.add(1.41); | ||||||
|  |  | ||||||
|  |             AssertJsonIs("[3.14,2.72]"); | ||||||
|  |         } | ||||||
|  |  | ||||||
|         void AssertJsonIs(const char* expected) |         void AssertJsonIs(const char* expected) | ||||||
|         {       |         {       | ||||||
|             char buffer[256]; |             char buffer[256]; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user