mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 08:42:39 +01:00 
			
		
		
		
	Added a test of one string over hash table's capacity
This commit is contained in:
		| @@ -37,7 +37,7 @@ namespace JsonGeneratorTests | ||||
|             jsonIs("[\"hello\",\"world\"]"); | ||||
|         } | ||||
|  | ||||
|         TEST_METHOD(AddOneStringOverCapacity) | ||||
|         TEST_METHOD(OneStringOverCapacity) | ||||
|         { | ||||
|             addValue("hello"); | ||||
|             addValue("world"); | ||||
|   | ||||
| @@ -29,6 +29,14 @@ namespace JsonGeneratorTests | ||||
|             jsonIs("{\"key1\":\"value1\",\"key2\":\"value2\"}"); | ||||
|         } | ||||
|  | ||||
|         TEST_METHOD(OneStringOverCapacity) | ||||
|         { | ||||
|             add("key1", "value1"); | ||||
|             add("key2", "value2"); | ||||
|             add("key3", "value3"); | ||||
|             jsonIs("{\"key1\":\"value1\",\"key2\":\"value2\"}"); | ||||
|         } | ||||
|  | ||||
|     private: | ||||
|  | ||||
|         template<typename T> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user