forked from bblanchon/ArduinoJson
Fixed deserializeJson() not being picky enough (fixes #969)
This commit is contained in:
1 parent
6071bd07ec
commit
6011a2f51a
4 files changed
+12
-2
No files matched your search
@@ -7,8 +7,8 @@
|
||||
#include <catch.hpp>
|
||||
|
||||
TEST_CASE("Invalid JSON input") {
|
||||
const char* testCases[] = {"'\\u'", "'\\u000g'", "'\\u000'",
|
||||
"'\\u000G'", "'\\u000/'", "\\x1234"};
|
||||
const char* testCases[] = {"'\\u'", "'\\u000g'", "'\\u000'", "'\\u000G'",
|
||||
"'\\u000/'", "\\x1234", "6a9"};
|
||||
const size_t testCount = sizeof(testCases) / sizeof(testCases[0]);
|
||||
|
||||
DynamicJsonDocument doc(4096);
|
||||
|
||||
Reference in new issue
Block a user