File indexing completed on 2024-04-21 11:13:47

0001 /*************************************************************************************
0002  *  Copyright (C) 2007 by Aleix Pol <aleixpol@kde.org>                               *
0003  *  Copyright (C) 2012 by Percy Camilo T. Aucahuasi <percy.camilo.ta@gmail.com>      *
0004  *                                                                                   *
0005  *  This program is free software; you can redistribute it and/or                    *
0006  *  modify it under the terms of the GNU General Public License                      *
0007  *  as published by the Free Software Foundation; either version 2                   *
0008  *  of the License, or (at your option) any later version.                           *
0009  *                                                                                   *
0010  *  This program is distributed in the hope that it will be useful,                  *
0011  *  but WITHOUT ANY WARRANTY; without even the implied warranty of                   *
0012  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                    *
0013  *  GNU General Public License for more details.                                     *
0014  *                                                                                   *
0015  *  You should have received a copy of the GNU General Public License                *
0016  *  along with this program; if not, write to the Free Software                      *
0017  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA   *
0018  *************************************************************************************/
0019 
0020 #ifndef PLANECURVETEST_H
0021 #define PLANECURVETEST_H
0022 
0023 #include <QObject>
0024 #include <QSharedPointer>
0025 
0026 /**
0027     @author Aleix Pol
0028 */
0029 namespace Analitza { class Variables; }
0030 
0031 class PlaneCurveTest : public QObject
0032 {
0033 Q_OBJECT
0034     public:
0035         PlaneCurveTest(QObject *parent = nullptr);
0036         ~PlaneCurveTest() override;
0037 
0038     private Q_SLOTS:
0039         void initTestCase();
0040 
0041         void testCorrect(); // correct curves
0042         void testCorrect_data();
0043 
0044         void testIncorrect(); // cases that can not be drawn
0045         void testIncorrect_data();
0046 
0047         void testJumps();
0048         void testJumps_data();
0049 
0050         void testParamIntervals();
0051         void testParamIntervals_data();
0052 
0053         void cleanupTestCase();
0054     private:
0055         QSharedPointer<Analitza::Variables> m_vars;
0056 };
0057 
0058 #endif