123456789101112131415161718192021222324252627282930313233343536 |
- /*
- * Author: Patrick-Christopher Mattulat
- * Company: Lynar Studios
- * E-Mail: webmaster@lynarstudios.com
- * Created: 2020-08-14
- * Changed: 2021-05-02
- *
- * */
- #include <gtest/gtest.h>
- #include <ls_std/lib/nlohmann_json/include/nlohmann/json.hpp>
- namespace
- {
- class JsonTest : public ::testing::Test
- {
- protected:
- JsonTest() = default;
- ~JsonTest() override = default;
- void SetUp() override
- {}
- void TearDown() override
- {}
- };
- TEST_F(JsonTest, simpleSerialization)
- {
- nlohmann::json jsonObject{};
- jsonObject["value"] = 1989;
- ASSERT_STREQ(R"({"value":1989})", jsonObject.dump().c_str());
- }
- }
|