5#include <QtTest/QtTest>
19void TestGraphCoords::cleanupTestCase ()
23void TestGraphCoords::initTestCase ()
30 const bool NO_RESET =
false;
56void TestGraphCoords::testAnyColumnsRepeatNo ()
60 vector.push_back (QPointF (100, 100));
61 vector.push_back (QPointF (300, 100));
62 vector.push_back (QPointF (200, 200));
64 QVERIFY (!m_callback->anyPointsRepeatPair (vector,
68void TestGraphCoords::testAnyColumnsRepeatYes ()
73 vector.push_back (QPointF (100, 100));
74 vector.push_back (QPointF (100, 100));
75 vector.push_back (QPointF (200, 200));
77 QVERIFY (m_callback->anyPointsRepeatPair (vector,
81void TestGraphCoords::testThreeCollinearPointsNo ()
84 QTransform m (100, 300, 200,
88 QVERIFY (!m_callback->threePointsAreCollinear (m,
89 CallbackAxisPointsAbstract::LinearOrLog::COORD_IS_LINEAR,
90 CallbackAxisPointsAbstract::LinearOrLog::COORD_IS_LINEAR));
93void TestGraphCoords::testThreeCollinearPointsYes ()
96 QTransform m (100, 150, 200,
100 QVERIFY (m_callback->threePointsAreCollinear (m,
101 CallbackAxisPointsAbstract::LinearOrLog::COORD_IS_LINEAR,
102 CallbackAxisPointsAbstract::LinearOrLog::COORD_IS_LINEAR));
QList< QPointF > CoordPairVector
@ DOCUMENT_AXES_POINTS_REQUIRED_3
void initializeLogging(const QString &name, const QString &filename, bool isDebug)
const bool NO_EXPORT_ONLY
const QStringList NO_COMMAND_LINE
const QString NO_EXTRACT_IMAGE_EXTENSION
const QString NO_ERROR_REPORT_LOG_FILE
const bool NO_GNUPLOT_LOG_FILES
const QString NO_REGRESSION_OPEN_FILE
const QStringList NO_LOAD_STARTUP_FILES
const bool NO_REGRESSION_IMPORT
const bool NO_EXTRACT_IMAGE_ONLY
const bool NO_DROP_REGRESSION
Unit tests of graph coordinate sanity checking.
TestGraphCoords(QObject *parent=0)
Single constructor.