File indexing completed on 2024-04-28 11:20:42

0001 /*
0002     SPDX-License-Identifier: GPL-2.0-or-later
0003     SPDX-FileCopyrightText: 2009 Alexander Rieder <alexanderrieder@gmail.com>
0004 */
0005 
0006 #ifndef _TESTSAGE_H
0007 #define _TESTSAGE_H
0008 
0009 #include "backendtest.h"
0010 
0011 /** This class test some of the basic functions of the sage backend
0012     The different tests represent some general expressions, as well
0013     as expressions, that are known to have caused problems in earlier
0014     versions
0015 **/
0016 class TestSage : public BackendTest
0017 {
0018   Q_OBJECT
0019 
0020 private Q_SLOTS:
0021     void initTestCase();
0022 
0023     //tests evaluating a simple command
0024     void testSimpleCommand();
0025 
0026     //tests if the backend gets confused if more than
0027     //one command is in the queue
0028     void testCommandQueue();
0029     //tests a command, containing more than 1 line
0030     void testMultilineCommand();
0031 
0032     //tests defining and calling a function
0033     void testDefineFunction();
0034 
0035     //tests doing a plot
0036     void testPlot();
0037 
0038     //tests a syntax error (not closing bracket)
0039     void testInvalidSyntax();
0040 
0041     //tests a two-line command, where one doesn't deliver output
0042     //(source of problem in earlier versions)
0043     void testNoOutput();
0044 
0045     void testLoginLogout();
0046     void testRestartWhileRunning();
0047 private:
0048     QString backendName() override;
0049 
0050 };
0051 
0052 #endif /* _TESTSAGE_H */