File indexing completed on 2024-04-14 10:50:05

0001 /*
0002     SPDX-License-Identifier: GPL-2.0-or-later
0003     SPDX-FileCopyrightText: 2016 Ivan Lakhtanov <ivan.lakhtanov@gmail.com>
0004 */
0005 #pragma once
0006 
0007 #include <backendtest.h>
0008 
0009 class TestJulia: public BackendTest
0010 {
0011     Q_OBJECT
0012 private Q_SLOTS:
0013     /// Test simple one-line command. Check that last result is printed
0014     void testOneLine();
0015     /// Test one-line command returning `nothing`. No result is printed, except what `print` does
0016     void testOneLineWithPrint();
0017     /// Test command, that emits exception
0018     void testException();
0019     /// Test command consisting of multiple lines, including comments.
0020     void testMultilineCode();
0021     /// Test command with malformed syntax
0022     void testSyntaxError();
0023     /// Test that results gathered before exception occurred are shown
0024     void testPartialResultOnException();
0025     /// Test command queue with some simple expressions
0026     void testExpressionQueue();
0027 
0028     /// Tests that inline plot is shown
0029     void testInlinePlot();
0030     /// Tests that when exception occurred and plotting is done, partial text results shown to user
0031     void testInlinePlotWithExceptionAndPartialResult();
0032 
0033     /// Test registering new variables, when added by command
0034     void testAddVariablesFromCode();
0035     /// Test registering new variables, when added from variable manager
0036     void testAddVariablesFromManager();
0037     /// Test that removing variable unregisters it
0038     void testRemoveVariables();
0039 
0040     /// Test that auto completion provides expected results
0041     void testAutoCompletion();
0042     void testComplexAutocompletion();
0043 
0044     void testHelpRequest();
0045 
0046     void testLoginLogout();
0047     void testRestartWhileRunning();
0048 private:
0049     QString backendName() override;
0050 };