mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-17 12:32:17 +02: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