mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-19 05:22:24 +02:00
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