mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-17 20:42:24 +02:00
Generator: added a test of an array with too many numbers
This commit is contained in:
@ -55,6 +55,15 @@ namespace JsonGeneratorTests
|
||||
AssertJsonIs("[3.14,2.72]");
|
||||
}
|
||||
|
||||
TEST_METHOD(AddOneNumberOverCapacity)
|
||||
{
|
||||
arr.add(3.14);
|
||||
arr.add(2.72);
|
||||
arr.add(1.41);
|
||||
|
||||
AssertJsonIs("[3.14,2.72]");
|
||||
}
|
||||
|
||||
void AssertJsonIs(const char* expected)
|
||||
{
|
||||
char buffer[256];
|
||||
|
Reference in New Issue
Block a user