mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-17 20:42:24 +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\"]");
|
jsonIs("[\"hello\",\"world\"]");
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_METHOD(AddOneNumber)
|
TEST_METHOD(OneNumber)
|
||||||
{
|
{
|
||||||
addValue(3.14);
|
addValue(3.14);
|
||||||
|
|
||||||
|
@ -37,6 +37,13 @@ namespace JsonGeneratorTests
|
|||||||
jsonIs("{\"key1\":\"value1\",\"key2\":\"value2\"}");
|
jsonIs("{\"key1\":\"value1\",\"key2\":\"value2\"}");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TEST_METHOD(OneNumber)
|
||||||
|
{
|
||||||
|
add("pi", 3.14);
|
||||||
|
|
||||||
|
jsonIs("{\"pi\":3.14}");
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
|
Reference in New Issue
Block a user