mirror of
https://github.com/latentPrion/cppbessot.git
synced 2026-04-18 02:54:23 +00:00
Add tests for generated-cpp-source & json serdes
This commit is contained in:
9
tests/cpp-serdes/test_helpers.h
Normal file
9
tests/cpp-serdes/test_helpers.h
Normal file
@@ -0,0 +1,9 @@
|
||||
#pragma once
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
#include <nlohmann/json.hpp>
|
||||
|
||||
inline void expect_json_roundtrip_equal(const nlohmann::json& actual, const nlohmann::json& expected)
|
||||
{
|
||||
EXPECT_EQ(actual, expected) << "expected: " << expected.dump() << "\nactual: " << actual.dump();
|
||||
}
|
||||
Reference in New Issue
Block a user