Commit 0f436478 authored by Adriaan de Groot's avatar Adriaan de Groot 💬
Browse files

Fix tgffileformat test: make unidirectional the first edge type

 - by adding a new edge type in 8c6f0eac
   and making the default bidirectional, some tests were broken
   (which assume that the first edge type is unidirectional).

Swap the two around, although that still seems like a hack. Tests
that need unidirectional edges should get them explicitly.
parent 271fcdfa
......@@ -127,16 +127,16 @@ GraphDocumentPtr GraphDocument::create()
GraphDocumentPtr pi(new GraphDocument);
pi->setQpointer(pi);
// create default edge bidirectional
EdgeTypePtr edgeTypeBidirectional = EdgeType::create(pi);
edgeTypeBidirectional->setName(i18n("bidirectional"));
edgeTypeBidirectional->setDirection(EdgeType::Direction::Bidirectional);
// create default edge unidirectional
EdgeTypePtr edgeTypeUnidirectional = EdgeType::create(pi);
edgeTypeUnidirectional->setName(i18n("unidirectional"));
edgeTypeUnidirectional->setDirection(EdgeType::Direction::Unidirectional);
// create default edge bidirectional
EdgeTypePtr edgeTypeBidirectional = EdgeType::create(pi);
edgeTypeBidirectional->setName(i18n("bidirectional"));
edgeTypeBidirectional->setDirection(EdgeType::Direction::Bidirectional);
// create default node type
NodeType::create(pi)->setName(i18n("default"));
pi->d->m_valid = true;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment