mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-17 12:32:17 +02:00
Generator: added a tests that adds a 'true' to an array
This commit is contained in:
@ -64,6 +64,13 @@ namespace JsonGeneratorTests
|
||||
AssertJsonIs("[3.14,2.72]");
|
||||
}
|
||||
|
||||
TEST_METHOD(AddTrue)
|
||||
{
|
||||
arr.add(true);
|
||||
|
||||
AssertJsonIs("[true]");
|
||||
}
|
||||
|
||||
void AssertJsonIs(const char* expected)
|
||||
{
|
||||
char buffer[256];
|
||||
|
Reference in New Issue
Block a user