Changeset View
Changeset View
Standalone View
Standalone View
tests/spreadsheet/TrivialTest.h
- This file was added.
1 | /*************************************************************************** | ||||
---|---|---|---|---|---|
2 | File : TrivialTest.h | ||||
3 | Project : LabPlot | ||||
4 | Description : Tests for the Spreadsheet's trivial features | ||||
5 | -------------------------------------------------------------------- | ||||
6 | Copyright : (C) 2019 Shubham (aryan100jangid@gmail.com) | ||||
7 | ***************************************************************************/ | ||||
8 | | ||||
9 | /*************************************************************************** | ||||
10 | * * | ||||
11 | * This program is free software; you can redistribute it and/or modify * | ||||
12 | * it under the terms of the GNU General Public License as published by * | ||||
13 | * the Free Software Foundation; either version 2 of the License, or * | ||||
14 | * (at your option) any later version. * | ||||
15 | * * | ||||
16 | * This program is distributed in the hope that it will be useful, * | ||||
17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of * | ||||
18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * | ||||
19 | * GNU General Public License for more details. * | ||||
20 | * * | ||||
21 | * You should have received a copy of the GNU General Public License * | ||||
22 | * along with this program; if not, write to the Free Software * | ||||
23 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, * | ||||
24 | * Boston, MA 02110-1301 USA * | ||||
25 | * * | ||||
26 | ***************************************************************************/ | ||||
27 | | ||||
28 | #ifndef TRIVIALTEST_H | ||||
29 | #define TRIVIALTEST_H | ||||
30 | | ||||
31 | #include <QtTest> | ||||
32 | | ||||
33 | #include "backend/spreadsheet/Spreadsheet.h" | ||||
34 | | ||||
35 | class TrivialTest : public QObject { | ||||
36 | Q_OBJECT | ||||
37 | | ||||
38 | public: | ||||
39 | TrivialTest(); | ||||
40 | ~TrivialTest(); | ||||
41 | | ||||
42 | private slots: | ||||
43 | void testRowCount(); | ||||
44 | void testColumnCount(); | ||||
45 | void testRowColumnValues(); | ||||
46 | void testAddRemoveRow(); | ||||
47 | void testAddRemoveColumn(); | ||||
48 | | ||||
49 | private: | ||||
50 | Spreadsheet *sheet; | ||||
51 | }; | ||||
52 | | ||||
53 | #endif |