mirror of
https://github.com/eledio-devices/thirdparty-ArduinoJson.git
synced 2025-11-01 16:14:05 +01:00
Added a test that adds two booleans to an array
This commit is contained in:
@@ -78,6 +78,14 @@ namespace JsonGeneratorTests
|
||||
AssertJsonIs("[false]");
|
||||
}
|
||||
|
||||
TEST_METHOD(AddTwoBooleans)
|
||||
{
|
||||
arr.add(false);
|
||||
arr.add(true);
|
||||
|
||||
AssertJsonIs("[false,true]");
|
||||
}
|
||||
|
||||
void AssertJsonIs(const char* expected)
|
||||
{
|
||||
char buffer[256];
|
||||
|
||||
Reference in New Issue
Block a user