Changeset View
Changeset View
Standalone View
Standalone View
src/backends/octave/octavevariablemodel.h
- This file was copied from src/backends/python2/testpython2.h.
Show All 9 Lines | 1 | /* | |||
---|---|---|---|---|---|
10 | GNU General Public License for more details. | 10 | GNU General Public License for more details. | ||
11 | 11 | | |||
12 | You should have received a copy of the GNU General Public License | 12 | You should have received a copy of the GNU General Public License | ||
13 | along with this program; if not, write to the Free Software | 13 | along with this program; if not, write to the Free Software | ||
14 | Foundation, Inc., 51 Franklin Street, Fifth Floor, | 14 | Foundation, Inc., 51 Franklin Street, Fifth Floor, | ||
15 | Boston, MA 02110-1301, USA. | 15 | Boston, MA 02110-1301, USA. | ||
16 | 16 | | |||
17 | --- | 17 | --- | ||
18 | Copyright (C) 2013 Tuukka Verho <tuukka.verho@aalto.fi> | 18 | Copyright (C) 2018 Nikita Sirgienko <warquark@gmail.com> | ||
19 | */ | 19 | */ | ||
20 | 20 | | |||
21 | #ifndef _TESTPYTHON2_H | 21 | #ifndef _OCTAVEVARIABLEMODEL_H | ||
22 | #define _TESTPYTHON2_H | 22 | #define _OCTAVEVARIABLEMODEL_H | ||
23 | 23 | | |||
24 | #include "backendtest.h" | 24 | #include "defaultvariablemodel.h" | ||
25 | 25 | | |||
26 | class OctaveSession; | ||||
26 | 27 | | |||
27 | class TestPython2 : public BackendTest | 28 | class OctaveVariableModel : public Cantor::DefaultVariableModel | ||
28 | { | 29 | { | ||
29 | Q_OBJECT | 30 | public: | ||
31 | OctaveVariableModel( OctaveSession* session); | ||||
32 | ~OctaveVariableModel() override = default; | ||||
33 | | ||||
34 | void update() override; | ||||
35 | | ||||
30 | private Q_SLOTS: | 36 | private Q_SLOTS: | ||
31 | void testImportNumpy(); | 37 | void parseNewVariables(Cantor::Expression::Status status); | ||
32 | void testCodeWithComments(); | | |||
33 | void testSimpleCode(); | | |||
34 | void testMultilineCode(); | | |||
35 | 38 | | |||
36 | private: | 39 | private: | ||
37 | QString backendName() override; | 40 | Cantor::Expression* m_expr; | ||
38 | }; | 41 | }; | ||
39 | 42 | | |||
40 | #endif /* _TESTPYTHON2_H */ | 43 | #endif /* _OCTAVEVARIABLEMODEL_H */ |