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