diff options
author | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-01-04 22:21:27 +0100 |
---|---|---|
committer | Andreas Stöckel <andreas@somweyr.de> | 2015-01-04 22:21:27 +0100 |
commit | 7e1c72a5a5d5dc890a49f79c5daec3edcb38a33b (patch) | |
tree | fe7817f013d24ab634e39d5a4376e0380b3fdef7 /test/core/model | |
parent | 704313333f1253067a8913ce963014bdfde1e852 (diff) |
temporarily exporting dot files in typesystem test
Diffstat (limited to 'test/core/model')
-rw-r--r-- | test/core/model/TypesystemTest.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/test/core/model/TypesystemTest.cpp b/test/core/model/TypesystemTest.cpp index ff42fe5..72762e5 100644 --- a/test/core/model/TypesystemTest.cpp +++ b/test/core/model/TypesystemTest.cpp @@ -515,10 +515,14 @@ TEST(StructType, creation) TEST(StructType, creationWithParent) { - Manager mgr; + Manager mgr{1}; Rooted<StructType> structType = createStructType(mgr, logger); + { Rooted<StructType> structWithParentType = createStructTypeWithParent(structType, mgr, logger); +#ifdef MANAGER_GRAPHVIZ_EXPORT + mgr.exportGraphviz("structTypeTest1.dot"); +#endif Variant val = structWithParentType->create(); ASSERT_TRUE(val.isArray()); @@ -539,6 +543,10 @@ TEST(StructType, creationWithParent) ASSERT_EQ(0, arr[3].asInt()); ASSERT_EQ("value1", arr[4].asString()); ASSERT_EQ(42, arr[5].asInt()); + } +#ifdef MANAGER_GRAPHVIZ_EXPORT + mgr.exportGraphviz("structTypeTest2.dot"); +#endif } TEST(StructType, derivedFrom) |