Changeset View
Changeset View
Standalone View
Standalone View
src/backends/julia/tests/testjulia.h
Show All 19 Lines | |||||
20 | #pragma once | 20 | #pragma once | ||
21 | 21 | | |||
22 | #include <backendtest.h> | 22 | #include <backendtest.h> | ||
23 | 23 | | |||
24 | class TestJulia: public BackendTest | 24 | class TestJulia: public BackendTest | ||
25 | { | 25 | { | ||
26 | Q_OBJECT | 26 | Q_OBJECT | ||
27 | private Q_SLOTS: | 27 | private Q_SLOTS: | ||
28 | /** | ||||
29 | * Test simple one-line command. Check that last result is printed | ||||
30 | */ | ||||
28 | void testOneLine(); | 31 | void testOneLine(); | ||
32 | /** | ||||
33 | * Test one-line command returning `nothing`. No result is printed, except | ||||
34 | * what `print` does | ||||
35 | */ | ||||
29 | void testOneLineWithPrint(); | 36 | void testOneLineWithPrint(); | ||
37 | /** | ||||
38 | * Test command, that emits exception | ||||
39 | */ | ||||
30 | void testException(); | 40 | void testException(); | ||
41 | /** | ||||
42 | * Test command consisting of multiple lines, including comments. | ||||
43 | */ | ||||
31 | void testMultilineCode(); | 44 | void testMultilineCode(); | ||
45 | /** | ||||
46 | * Test command with malformed syntax | ||||
47 | */ | ||||
32 | void testSyntaxError(); | 48 | void testSyntaxError(); | ||
49 | /** | ||||
50 | * Test that results gathered before exception occured are shown | ||||
51 | */ | ||||
33 | void testPartialResultOnException(); | 52 | void testPartialResultOnException(); | ||
34 | 53 | | |||
54 | /** | ||||
55 | * Tests that inline plot is shown | ||||
56 | */ | ||||
57 | void testInlinePlot(); | ||||
58 | /** | ||||
59 | * Tests that when exception occured and plotting is done, partial | ||||
60 | * text results shown to user | ||||
61 | */ | ||||
62 | void testInlinePlotWithExceptionAndPartialResult(); | ||||
63 | | ||||
64 | /** | ||||
65 | * Test registering new variables, when added by command | ||||
66 | */ | ||||
67 | void testAddVariablesFromCode(); | ||||
68 | /** | ||||
69 | * Test registering new variables, when added from variable manager | ||||
70 | */ | ||||
71 | void testAddVariablesFromManager(); | ||||
72 | /** | ||||
73 | * Test that removing variable unregisters it | ||||
74 | */ | ||||
75 | void testRemoveVariables(); | ||||
76 | | ||||
77 | /** | ||||
78 | * Test that auto completion provides expected results | ||||
79 | */ | ||||
80 | void testAutoCompletion(); | ||||
81 | | ||||
35 | private: | 82 | private: | ||
36 | virtual QString backendName(); | 83 | virtual QString backendName(); | ||
37 | }; | 84 | }; |