forked from bblanchon/ArduinoJson
Added a tests that adds a 'null' to an array
This commit is contained in:
@ -16,6 +16,13 @@ namespace JsonGeneratorTests
|
||||
AssertJsonIs("[]");
|
||||
}
|
||||
|
||||
TEST_METHOD(AddNull)
|
||||
{
|
||||
arr.add((char*)0);
|
||||
|
||||
AssertJsonIs("[null]");
|
||||
}
|
||||
|
||||
TEST_METHOD(AddOneString)
|
||||
{
|
||||
arr.add("hello");
|
||||
|
Reference in New Issue
Block a user