diff options
author | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2014-03-04 15:16:06 +0000 |
---|---|---|
committer | andreas <andreas@daaaf23c-2e50-4459-9457-1e69db5a47bf> | 2014-03-04 15:16:06 +0000 |
commit | df938ff92ea02f26c594c610234754101138f646 (patch) | |
tree | 44627288bdbb469344eeb81c46657da7888c8650 /src/main.cpp | |
parent | c543117ff43c63a053ea786ed606398ac4687494 (diff) |
added unit test framework
git-svn-id: file:///var/local/svn/basicwriter@14 daaaf23c-2e50-4459-9457-1e69db5a47bf
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/src/main.cpp b/src/main.cpp index efe3031..5c01bc3 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,4 +1,3 @@ -#include <gui/notepad.hpp> #include <QApplication> #include <QFile> #include <QIODevice> @@ -7,11 +6,18 @@ #include <vector> #include <iostream> +#include <model/GraphNode.hpp> + +using namespace ousia; + int main(int argc, char *argv[]) { - QApplication a(argc, argv); - Notepad w; - w.show(); + std::shared_ptr<GraphNode> nd1{new GraphNode("node1")}; + std::shared_ptr<GraphNode> nd2{new GraphNode("node2", nd1)}; + + std::cout << nd2->getParent()->getName() << std::endl; + + return 0; // Open the file given as first argument /* QFile file(argv[1]); @@ -31,6 +37,5 @@ int main(int argc, char *argv[]) return 1; } return 0;*/ - - return a.exec(); } + |