/[svn]/linuxsampler/trunk/src/testcases/NKSPTest.h
ViewVC logotype

Contents of /linuxsampler/trunk/src/testcases/NKSPTest.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3693 - (show annotations) (download) (as text)
Fri Jan 3 14:53:32 2020 UTC (9 months, 4 weeks ago) by schoenebeck
File MIME type: text/x-c++hdr
File size: 5645 byte(s)
Added NKSP test cases for core built-in variables.

1 #ifndef __LS_NKSPCPPUNITTESTS_H__
2 #define __LS_NKSPCPPUNITTESTS_H__
3
4 #include <cppunit/TestFixture.h>
5 #include <cppunit/extensions/HelperMacros.h>
6
7 #ifdef HAVE_CONFIG_H
8 # include <config.h>
9 #endif
10
11 class NKSPTest : public CppUnit::TestFixture {
12 CPPUNIT_TEST_SUITE(NKSPTest);
13 CPPUNIT_TEST(printTestSuiteName);
14 CPPUNIT_TEST(testNKSPBuiltInExitFunction);
15 CPPUNIT_TEST(testNKSPStringConcatOperator);
16 CPPUNIT_TEST(testNKSPNegOperator);
17 CPPUNIT_TEST(testNKSPPlusOperator);
18 CPPUNIT_TEST(testNKSPMinusOperator);
19 CPPUNIT_TEST(testNKSPModuloOperator);
20 CPPUNIT_TEST(testNKSPMultiplyOperator);
21 CPPUNIT_TEST(testNKSPDivideOperator);
22 CPPUNIT_TEST(testNKSPSmallerThanOperator);
23 CPPUNIT_TEST(testNKSPGreaterThanOperator);
24 CPPUNIT_TEST(testNKSPSmallerOrEqualOperator);
25 CPPUNIT_TEST(testNKSPGreaterOrEqualOperator);
26 CPPUNIT_TEST(testNKSPEqualOperator);
27 CPPUNIT_TEST(testNKSPUnequalOperator);
28 CPPUNIT_TEST(testNKSPLogicalAndOperator);
29 CPPUNIT_TEST(testNKSPLogicalOrOperator);
30 CPPUNIT_TEST(testNKSPLogicalNotOperator);
31 CPPUNIT_TEST(testNKSPBitwiseAndOperator);
32 CPPUNIT_TEST(testNKSPBitwiseOrOperator);
33 CPPUNIT_TEST(testNKSPBitwiseNotOperator);
34 CPPUNIT_TEST(testNKSPPrecedenceOfOperators);
35 CPPUNIT_TEST(testNKSPBuiltInMinFunction);
36 CPPUNIT_TEST(testNKSPBuiltInMaxFunction);
37 CPPUNIT_TEST(testNKSPBuiltInAbsFunction);
38 CPPUNIT_TEST(testNKSPBuiltInIncFunction);
39 CPPUNIT_TEST(testNKSPBuiltInDecFunction);
40 CPPUNIT_TEST(testNKSPBuiltInInRangeFunction);
41 CPPUNIT_TEST(testNKSPBuiltInRandomFunction);
42 CPPUNIT_TEST(testNKSPBuiltInShiftLeftFunction);
43 CPPUNIT_TEST(testNKSPBuiltInShiftRightFunction);
44 CPPUNIT_TEST(testNKSPBuiltInMsbFunction);
45 CPPUNIT_TEST(testNKSPBuiltInLsbFunction);
46 CPPUNIT_TEST(testNKSPBuiltInIntToRealFunction);
47 CPPUNIT_TEST(testNKSPBuiltInRealFunction);
48 CPPUNIT_TEST(testNKSPBuiltInRealToIntFunction);
49 CPPUNIT_TEST(testNKSPBuiltInIntFunction);
50 CPPUNIT_TEST(testNKSPBuiltInRoundFunction);
51 CPPUNIT_TEST(testNKSPBuiltInCeilFunction);
52 CPPUNIT_TEST(testNKSPBuiltInFloorFunction);
53 CPPUNIT_TEST(testNKSPBuiltInSqrtFunction);
54 CPPUNIT_TEST(testNKSPBuiltInLogFunction);
55 CPPUNIT_TEST(testNKSPBuiltInLog2Function);
56 CPPUNIT_TEST(testNKSPBuiltInLog10Function);
57 CPPUNIT_TEST(testNKSPBuiltInExpFunction);
58 CPPUNIT_TEST(testNKSPBuiltInPowFunction);
59 CPPUNIT_TEST(testNKSPBuiltInSinFunction);
60 CPPUNIT_TEST(testNKSPBuiltInCosFunction);
61 CPPUNIT_TEST(testNKSPBuiltInTanFunction);
62 CPPUNIT_TEST(testNKSPBuiltInAsinFunction);
63 CPPUNIT_TEST(testNKSPBuiltInAcosFunction);
64 CPPUNIT_TEST(testNKSPBuiltInAtanFunction);
65 CPPUNIT_TEST(testNKSPBuiltInArrayEqualFunction);
66 CPPUNIT_TEST(testNKSPBuiltInSortFunction);
67 CPPUNIT_TEST(testNKSPBuiltInNumElementsFunction);
68 CPPUNIT_TEST(testNKSPBuiltInSearchFunction);
69 CPPUNIT_TEST(testNKSPIfStatement);
70 CPPUNIT_TEST(testNKSPWhileStatement);
71 CPPUNIT_TEST(testNKSPBuiltInVars);
72 CPPUNIT_TEST_SUITE_END();
73
74 public:
75 void printTestSuiteName();
76 void testNKSPBuiltInExitFunction();
77 void testNKSPStringConcatOperator();
78 void testNKSPNegOperator();
79 void testNKSPPlusOperator();
80 void testNKSPMinusOperator();
81 void testNKSPModuloOperator();
82 void testNKSPMultiplyOperator();
83 void testNKSPDivideOperator();
84 void testNKSPSmallerThanOperator();
85 void testNKSPGreaterThanOperator();
86 void testNKSPSmallerOrEqualOperator();
87 void testNKSPGreaterOrEqualOperator();
88 void testNKSPEqualOperator();
89 void testNKSPUnequalOperator();
90 void testNKSPLogicalAndOperator();
91 void testNKSPLogicalOrOperator();
92 void testNKSPLogicalNotOperator();
93 void testNKSPBitwiseAndOperator();
94 void testNKSPBitwiseOrOperator();
95 void testNKSPBitwiseNotOperator();
96 void testNKSPPrecedenceOfOperators();
97 void testNKSPBuiltInMinFunction();
98 void testNKSPBuiltInMaxFunction();
99 void testNKSPBuiltInAbsFunction();
100 void testNKSPBuiltInIncFunction();
101 void testNKSPBuiltInDecFunction();
102 void testNKSPBuiltInInRangeFunction();
103 void testNKSPBuiltInRandomFunction();
104 void testNKSPBuiltInShiftLeftFunction();
105 void testNKSPBuiltInShiftRightFunction();
106 void testNKSPBuiltInMsbFunction();
107 void testNKSPBuiltInLsbFunction();
108 void testNKSPBuiltInIntToRealFunction();
109 void testNKSPBuiltInRealFunction();
110 void testNKSPBuiltInRealToIntFunction();
111 void testNKSPBuiltInIntFunction();
112 void testNKSPBuiltInRoundFunction();
113 void testNKSPBuiltInCeilFunction();
114 void testNKSPBuiltInFloorFunction();
115 void testNKSPBuiltInSqrtFunction();
116 void testNKSPBuiltInLogFunction();
117 void testNKSPBuiltInLog2Function();
118 void testNKSPBuiltInLog10Function();
119 void testNKSPBuiltInExpFunction();
120 void testNKSPBuiltInPowFunction();
121 void testNKSPBuiltInSinFunction();
122 void testNKSPBuiltInCosFunction();
123 void testNKSPBuiltInTanFunction();
124 void testNKSPBuiltInAsinFunction();
125 void testNKSPBuiltInAcosFunction();
126 void testNKSPBuiltInAtanFunction();
127 void testNKSPBuiltInArrayEqualFunction();
128 void testNKSPBuiltInSortFunction();
129 void testNKSPBuiltInNumElementsFunction();
130 void testNKSPBuiltInSearchFunction();
131 void testNKSPIfStatement();
132 void testNKSPWhileStatement();
133 void testNKSPBuiltInVars();
134 };
135
136 #endif // __LS_NKSPCPPUNITTESTS_H__

  ViewVC Help
Powered by ViewVC