mirror of
https://github.com/JakeHillion/object-introspection.git
synced 2024-11-09 21:24:14 +00:00
20 lines
446 B
C++
20 lines
446 B
C++
|
#include <gtest/gtest.h>
|
||
|
|
||
|
#include "oi/type_graph/EnforceCompatibility.h"
|
||
|
#include "test/type_graph_utils.h"
|
||
|
|
||
|
using namespace type_graph;
|
||
|
|
||
|
TEST(EnforceCompatibilityTest, ParentContainers) {
|
||
|
test(EnforceCompatibility::createPass(), R"(
|
||
|
[0] Class: MyClass (size: 24)
|
||
|
Member: __oi_parent (offset: 0)
|
||
|
[1] Container: std::vector (size: 24)
|
||
|
Param
|
||
|
Primitive: int32_t
|
||
|
)",
|
||
|
R"(
|
||
|
[0] Class: MyClass (size: 24)
|
||
|
)");
|
||
|
}
|