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