summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorAleks Kissinger <aleks0@gmail.com>2018-01-26 22:34:15 +0900
committerAleks Kissinger <aleks0@gmail.com>2018-01-26 22:34:15 +0900
commit768e097abd17d07dd2748894b4dc1b09471dd6da (patch)
treec0b5a8774293d21ddace2c8afee8152bdd3a386c /src/test
parentd163561b49accb90dd9eb9028d9aa7c05266a539 (diff)
started implementing project loader
Diffstat (limited to 'src/test')
-rw-r--r--src/test/testparser.cpp14
-rw-r--r--src/test/testtikzoutput.cpp4
2 files changed, 9 insertions, 9 deletions
diff --git a/src/test/testparser.cpp b/src/test/testparser.cpp
index e220e2e..284930e 100644
--- a/src/test/testparser.cpp
+++ b/src/test/testparser.cpp
@@ -1,6 +1,6 @@
#include "testparser.h"
#include "graph.h"
-#include "tikzgraphassembler.h"
+#include "tikzassembler.h"
#include <QTest>
#include <QVector>
@@ -18,7 +18,7 @@
void TestParser::parseEmptyGraph()
{
Graph *g = new Graph();
- TikzGraphAssembler ga(g);
+ TikzAssembler ga(g);
bool res = ga.parse("\\begin{tikzpicture}\n\\end{tikzpicture}");
QVERIFY(res);
QVERIFY(g->nodes().size() == 0);
@@ -29,7 +29,7 @@ void TestParser::parseEmptyGraph()
void TestParser::parseNodeGraph()
{
Graph *g = new Graph();
- TikzGraphAssembler ga(g);
+ TikzAssembler ga(g);
bool res = ga.parse(
"\\begin{tikzpicture}\n"
" \\node (node0) at (1.1, -2.2) {};\n"
@@ -50,7 +50,7 @@ void TestParser::parseNodeGraph()
void TestParser::parseEdgeGraph()
{
Graph *g = new Graph();
- TikzGraphAssembler ga(g);
+ TikzAssembler ga(g);
bool res = ga.parse(
"\\begin{tikzpicture}\n"
" \\begin{pgfonlayer}{nodelayer}\n"
@@ -81,7 +81,7 @@ void TestParser::parseEdgeGraph()
void TestParser::parseEdgeNode()
{
Graph *g = new Graph();
- TikzGraphAssembler ga(g);
+ TikzAssembler ga(g);
bool res = ga.parse(
"\\begin{tikzpicture}\n"
" \\begin{pgfonlayer}{nodelayer}\n"
@@ -106,7 +106,7 @@ void TestParser::parseEdgeNode()
void TestParser::parseEdgeBends()
{
Graph *g = new Graph();
- TikzGraphAssembler ga(g);
+ TikzAssembler ga(g);
bool res = ga.parse(
"\\begin{tikzpicture}\n"
" \\begin{pgfonlayer}{nodelayer}\n"
@@ -136,7 +136,7 @@ void TestParser::parseEdgeBends()
void TestParser::parseBbox()
{
Graph *g = new Graph();
- TikzGraphAssembler ga(g);
+ TikzAssembler ga(g);
bool res = ga.parse(
"\\begin{tikzpicture}\n"
" \\path [use as bounding box] (-1.5,-1.5) rectangle (1.5,1.5);\n"
diff --git a/src/test/testtikzoutput.cpp b/src/test/testtikzoutput.cpp
index f086786..1c25439 100644
--- a/src/test/testtikzoutput.cpp
+++ b/src/test/testtikzoutput.cpp
@@ -2,7 +2,7 @@
#include "graphelementproperty.h"
#include "graphelementdata.h"
#include "graph.h"
-#include "tikzgraphassembler.h"
+#include "tikzassembler.h"
#include <QTest>
#include <QRectF>
@@ -58,7 +58,7 @@ void TestTikzOutput::graphEmpty()
void TestTikzOutput::graphFromTikz()
{
Graph *g = new Graph();
- TikzGraphAssembler ga(g);
+ TikzAssembler ga(g);
QString tikz =
"\\begin{tikzpicture}\n"