File indexing completed on 2024-05-05 11:55:53
0001 /* 0002 SPDX-License-Identifier: GPL-2.0-or-later 0003 SPDX-FileCopyrightText: 2009 Alexander Rieder <alexanderrieder@gmail.com> 0004 SPDX-FileCopyrightText: 2021-2023 Alexander Semke <alexander.semke@web.de> 0005 */ 0006 0007 #ifndef _TESTOCTAVE_H 0008 #define _TESTOCTAVE_H 0009 0010 #include "backendtest.h" 0011 0012 /** This class test some of the basic functions of the Octave backend 0013 The different tests represent some general expressions, as well 0014 as expressions, that are known to have caused problems in earlier 0015 versions 0016 **/ 0017 class TestOctave : public BackendTest 0018 { 0019 Q_OBJECT 0020 0021 private Q_SLOTS: 0022 void initTestCase(); 0023 0024 //tests evaluating a simple command 0025 void testSimpleCommand(); 0026 //tests a command, containing more than 1 line 0027 void testMultilineCommand(); 0028 //tests if the command queue works correctly 0029 void testCommandQueue(); 0030 0031 void testVariableDefinition(); 0032 void testMatrixDefinition(); 0033 0034 //comments 0035 void testComment00(); 0036 void testComment01(); 0037 void testComment02(); 0038 void testComment03(); 0039 void testComment04(); 0040 void testComment05(); 0041 void testComment06(); 0042 void testComment07(); 0043 void testComment08(); 0044 void testComment09(); 0045 0046 //tests a syntax error (not closing bracket) 0047 void testInvalidSyntax(); 0048 0049 void testCompletion(); 0050 void testHelpRequest(); 0051 void testSyntaxHelp(); 0052 0053 //tests variable model 0054 void testVariablesCreatingFromCode(); 0055 void testVariablesMultiRowValues(); 0056 void testVariableChangeSizeType(); 0057 void testVariableCleanupAfterRestart(); 0058 void testVariableCreatingFromCodeWithPlot(); 0059 0060 //tests doing a plot 0061 void testPlot(); 0062 void testCantorPlot2d(); 0063 void testCantorPlot3d(); 0064 0065 void testLoginLogout(); 0066 void testRestartWhileRunning(); 0067 private: 0068 QString backendName() override; 0069 }; 0070 0071 #endif /* _TESTOCTAVE_H */