mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
Update json from upstream version 3.1.2.
This adds support for ubjson and makes a number of bugfixes. Binary input and output have switched from strings to uint8_t arrays.
This commit is contained in:
@@ -718,7 +718,7 @@ TEST(JsonSwapTest, NonObjectT)
|
||||
TEST(JsonSwapTest, StringT)
|
||||
{
|
||||
json j = "Hello world";
|
||||
json::string_t s = "Hallo Welt";
|
||||
std::string s = "Hallo Welt";
|
||||
|
||||
j.swap(s);
|
||||
|
||||
@@ -732,7 +732,7 @@ TEST(JsonSwapTest, StringT)
|
||||
TEST(JsonSwapTest, NonStringT)
|
||||
{
|
||||
json j = 17;
|
||||
json::string_t s = "Hallo Welt";
|
||||
std::string s = "Hallo Welt";
|
||||
|
||||
EXPECT_THROW_MSG(j.swap(s), json::type_error,
|
||||
"[json.exception.type_error.310] cannot use swap() with number");
|
||||
|
||||
Reference in New Issue
Block a user