mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-17 12:32:17 +02:00
Added a test with two strings in a hash table
This commit is contained in:
@ -15,21 +15,21 @@ namespace JsonGeneratorTests
|
||||
jsonIs("[]");
|
||||
}
|
||||
|
||||
TEST_METHOD(AddNull)
|
||||
TEST_METHOD(Null)
|
||||
{
|
||||
addValue((char*)0);
|
||||
|
||||
jsonIs("[null]");
|
||||
}
|
||||
|
||||
TEST_METHOD(AddOneString)
|
||||
TEST_METHOD(OneString)
|
||||
{
|
||||
addValue("hello");
|
||||
|
||||
jsonIs("[\"hello\"]");
|
||||
}
|
||||
|
||||
TEST_METHOD(AddTwoStrings)
|
||||
TEST_METHOD(TwoStrings)
|
||||
{
|
||||
addValue("hello");
|
||||
addValue("world");
|
||||
|
Reference in New Issue
Block a user