mirror of
https://github.com/eledio-devices/thirdparty-ArduinoJson.git
synced 2025-11-01 00:38:27 +01:00
More test on object parsing
This commit is contained in:
@@ -54,6 +54,21 @@ TEST_F(JsonParser_Object_Test, MissingClosingBrace)
|
||||
sizeMustBe(0);
|
||||
}
|
||||
|
||||
TEST_F(JsonParser_Object_Test, MissingColonAndValue)
|
||||
{
|
||||
whenInputIs("{\"key\"}");
|
||||
parseMustFail();
|
||||
sizeMustBe(0);
|
||||
}
|
||||
|
||||
TEST_F(JsonParser_Object_Test, MissingQuotesAndColonAndValue)
|
||||
{
|
||||
whenInputIs("{key}");
|
||||
parseMustFail();
|
||||
sizeMustBe(0);
|
||||
}
|
||||
|
||||
|
||||
TEST_F(JsonParser_Object_Test, OneStringNoSpace)
|
||||
{
|
||||
whenInputIs("{\"key\":\"value\"}");
|
||||
|
||||
Reference in New Issue
Block a user