File indexing completed on 2024-04-14 14:13:57

0001 /***************************************************************************
0002     File                 : SpreadsheetTest.h
0003     Project              : LabPlot
0004     Description          : Tests for the Spreadsheet
0005     --------------------------------------------------------------------
0006     Copyright            : (C) 2020 Alexander Semke (alexander.semke@web.de)
0007  ***************************************************************************/
0008 
0009 /***************************************************************************
0010  *                                                                         *
0011  *  This program is free software; you can redistribute it and/or modify   *
0012  *  it under the terms of the GNU General Public License as published by   *
0013  *  the Free Software Foundation; either version 2 of the License, or      *
0014  *  (at your option) any later version.                                    *
0015  *                                                                         *
0016  *  This program is distributed in the hope that it will be useful,        *
0017  *  but WITHOUT ANY WARRANTY; without even the implied warranty of         *
0018  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          *
0019  *  GNU General Public License for more details.                           *
0020  *                                                                         *
0021  *   You should have received a copy of the GNU General Public License     *
0022  *   along with this program; if not, write to the Free Software           *
0023  *   Foundation, Inc., 51 Franklin Street, Fifth Floor,                    *
0024  *   Boston, MA  02110-1301  USA                                           *
0025  *                                                                         *
0026  ***************************************************************************/
0027 
0028 #ifndef SPREADSHEETTEST_H
0029 #define SPREADSHEETTEST_H
0030 
0031 #include <QtTest>
0032 
0033 class SpreadsheetTest : public QObject {
0034     Q_OBJECT
0035 
0036 private slots:
0037     void initTestCase();
0038 
0039     //copy and paste
0040 
0041     //handling of different column modes
0042     void testCopyPasteColumnMode00();
0043     void testCopyPasteColumnMode01();
0044     void testCopyPasteColumnMode02();
0045     void testCopyPasteColumnMode03();
0046     void testCopyPasteColumnMode04();
0047     void testCopyPasteColumnMode05();
0048 
0049     //handling of spreadsheet size changes
0050     void testCopyPasteSizeChange00();
0051     void testCopyPasteSizeChange01();
0052 
0053     // sorting tests
0054     void testSortSingleNumeric1();
0055     void testSortSingleNumeric2();
0056     void testSortSingleInteger1();
0057     void testSortSingleInteger2();
0058     void testSortSingleBigInt1();
0059     void testSortSingleBigInt2();
0060     void testSortSingleText1();
0061     void testSortSingleText2();
0062     void testSortSingleDateTime1();
0063     void testSortSingleDateTime2();
0064 
0065     void testSortNumeric1();
0066     void testSortNumeric2();
0067     void testSortInteger1();
0068     void testSortInteger2();
0069     void testSortBigInt1();
0070     void testSortBigInt2();
0071     void testSortText1();
0072     void testSortText2();
0073     void testSortDateTime1();
0074     void testSortDateTime2();
0075 
0076     void testSortPerformanceNumeric1();
0077     void testSortPerformanceNumeric2();
0078 };
0079 
0080 #endif