mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +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:
@@ -42,13 +42,13 @@ TEST(JsonVersionTest, Meta)
|
||||
json j = json::meta();
|
||||
|
||||
EXPECT_EQ(j["name"], "WPI version of JSON for Modern C++");
|
||||
EXPECT_EQ(j["copyright"], "(C) 2013-2017 Niels Lohmann, (C) 2017 FIRST");
|
||||
EXPECT_EQ(j["url"], "https://github.com/wpilibsuite/wpiutil");
|
||||
EXPECT_EQ(j["copyright"], "(C) 2013-2017 Niels Lohmann, (C) 2017-2018 FIRST");
|
||||
EXPECT_EQ(j["url"], "https://github.com/wpilibsuite/allwpilib");
|
||||
EXPECT_EQ(j["version"], json(
|
||||
{
|
||||
{"string", "2.1.1"},
|
||||
{"major", 2},
|
||||
{"string", "3.1.2"},
|
||||
{"major", 3},
|
||||
{"minor", 1},
|
||||
{"patch", 1}
|
||||
{"patch", 2}
|
||||
}));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user