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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3590 - (show annotations) (download)
Mon Sep 2 09:03:31 2019 UTC (5 months, 2 weeks ago) by schoenebeck
File size: 4715 byte(s)
NKSP: Implemented common real number math functions.

* Added built-in real number functions "round()", "ceil()", "floor()",
  "sqrt()", "log()", "log2()", "log10()", "exp()", "pow()", "sin()",
  "cos()", "tan()", "asin()", "acos()", "atan()".

* Added built-in script real number constant "~NI_MATH_PI".

* Added built-in script real number constant "~NI_MATH_E".

* Added NKSP test cases for built-in functions "round()", "ceil()",
  "floor()", "sqrt()", "log()", "log2()", "log10()", "exp()", "pow()",
  "sin()", "cos()", "tan()", "asin()", "acos()", "atan()".

* Bumped version (2.1.1.svn14).

1 #include "NKSPTest.h"
2 #include <iostream>
3
4 #define TEST_ASSERT CPPUNIT_ASSERT
5 #define NO_MAIN 1
6 #define SILENT_TEST 1
7 #include "../scriptvm/tests/NKSPTest.cpp"
8
9 CPPUNIT_TEST_SUITE_REGISTRATION(NKSPTest);
10
11 // NKSPTest
12
13 void NKSPTest::printTestSuiteName() {
14 cout << "\b \nRunning NKSP Tests: " << flush;
15 }
16
17 void NKSPTest::testNKSPBuiltInExitFunction() {
18 testBuiltInExitFunction();
19 }
20
21 void NKSPTest::testNKSPStringConcatOperator() {
22 testStringConcatOperator();
23 }
24
25 void NKSPTest::testNKSPNegOperator() {
26 testNegOperator();
27 }
28
29 void NKSPTest::testNKSPPlusOperator() {
30 testPlusOperator();
31 }
32
33 void NKSPTest::testNKSPMinusOperator() {
34 testMinusOperator();
35 }
36
37 void NKSPTest::testNKSPModuloOperator() {
38 testModuloOperator();
39 }
40
41 void NKSPTest::testNKSPMultiplyOperator() {
42 testMultiplyOperator();
43 }
44
45 void NKSPTest::testNKSPDivideOperator() {
46 testDivideOperator();
47 }
48
49 void NKSPTest::testNKSPSmallerThanOperator() {
50 testSmallerThanOperator();
51 }
52
53 void NKSPTest::testNKSPGreaterThanOperator() {
54 testGreaterThanOperator();
55 }
56
57 void NKSPTest::testNKSPSmallerOrEqualOperator() {
58 testSmallerOrEqualOperator();
59 }
60
61 void NKSPTest::testNKSPGreaterOrEqualOperator() {
62 testGreaterOrEqualOperator();
63 }
64
65 void NKSPTest::testNKSPEqualOperator() {
66 testEqualOperator();
67 }
68
69 void NKSPTest::testNKSPUnequalOperator() {
70 testUnequalOperator();
71 }
72
73 void NKSPTest::testNKSPLogicalAndOperator() {
74 testLogicalAndOperator();
75 }
76
77 void NKSPTest::testNKSPLogicalOrOperator() {
78 testLogicalOrOperator();
79 }
80
81 void NKSPTest::testNKSPLogicalNotOperator() {
82 testLogicalNotOperator();
83 }
84
85 void NKSPTest::testNKSPBitwiseAndOperator() {
86 testBitwiseAndOperator();
87 }
88
89 void NKSPTest::testNKSPBitwiseOrOperator() {
90 testBitwiseOrOperator();
91 }
92
93 void NKSPTest::testNKSPBitwiseNotOperator() {
94 testBitwiseNotOperator();
95 }
96
97 void NKSPTest::testNKSPPrecedenceOfOperators() {
98 testPrecedenceOfOperators();
99 }
100
101 void NKSPTest::testNKSPBuiltInMinFunction() {
102 testBuiltInMinFunction();
103 }
104
105 void NKSPTest::testNKSPBuiltInMaxFunction() {
106 testBuiltInMaxFunction();
107 }
108
109 void NKSPTest::testNKSPBuiltInAbsFunction() {
110 testBuiltInAbsFunction();
111 }
112
113 void NKSPTest::testNKSPBuiltInIncFunction() {
114 testBuiltInIncFunction();
115 }
116
117 void NKSPTest::testNKSPBuiltInDecFunction() {
118 testBuiltInDecFunction();
119 }
120
121 void NKSPTest::testNKSPBuiltInInRangeFunction() {
122 testBuiltInInRangeFunction();
123 }
124
125 void NKSPTest::testNKSPBuiltInRandomFunction() {
126 testBuiltInRandomFunction();
127 }
128
129 void NKSPTest::testNKSPBuiltInShiftLeftFunction() {
130 testBuiltInShiftLeftFunction();
131 }
132
133 void NKSPTest::testNKSPBuiltInShiftRightFunction() {
134 testBuiltInShiftRightFunction();
135 }
136
137 void NKSPTest::testNKSPBuiltInIntToRealFunction() {
138 testBuiltInIntToRealFunction();
139 }
140
141 void NKSPTest::testNKSPBuiltInRealFunction() {
142 testBuiltInRealFunction();
143 }
144
145 void NKSPTest::testNKSPBuiltInRealToIntFunction() {
146 testBuiltInRealToIntFunction();
147 }
148
149 void NKSPTest::testNKSPBuiltInIntFunction() {
150 testBuiltInIntFunction();
151 }
152
153 void NKSPTest::testNKSPBuiltInRoundFunction() {
154 testBuiltInRoundFunction();
155 }
156
157 void NKSPTest::testNKSPBuiltInCeilFunction() {
158 testBuiltInCeilFunction();
159 }
160
161 void NKSPTest::testNKSPBuiltInFloorFunction() {
162 testBuiltInFloorFunction();
163 }
164
165 void NKSPTest::testNKSPBuiltInSqrtFunction() {
166 testBuiltInSqrtFunction();
167 }
168
169 void NKSPTest::testNKSPBuiltInLogFunction() {
170 testBuiltInLogFunction();
171 }
172
173 void NKSPTest::testNKSPBuiltInLog2Function() {
174 testBuiltInLog2Function();
175 }
176
177 void NKSPTest::testNKSPBuiltInLog10Function() {
178 testBuiltInLog10Function();
179 }
180
181 void NKSPTest::testNKSPBuiltInExpFunction() {
182 testBuiltInExpFunction();
183 }
184
185 void NKSPTest::testNKSPBuiltInPowFunction() {
186 testBuiltInPowFunction();
187 }
188
189 void NKSPTest::testNKSPBuiltInSinFunction() {
190 testBuiltInSinFunction();
191 }
192
193 void NKSPTest::testNKSPBuiltInCosFunction() {
194 testBuiltInCosFunction();
195 }
196
197 void NKSPTest::testNKSPBuiltInTanFunction() {
198 testBuiltInTanFunction();
199 }
200
201 void NKSPTest::testNKSPBuiltInAsinFunction() {
202 testBuiltInAsinFunction();
203 }
204
205 void NKSPTest::testNKSPBuiltInAcosFunction() {
206 testBuiltInAcosFunction();
207 }
208
209 void NKSPTest::testNKSPBuiltInAtanFunction() {
210 testBuiltInAtanFunction();
211 }
212
213 void NKSPTest::testNKSPBuiltInArrayEqualFunction() {
214 testBuiltInArrayEqualFunction();
215 }
216
217 void NKSPTest::testNKSPBuiltInSortFunction() {
218 testBuiltInSortFunction();
219 }
220
221 void NKSPTest::testNKSPBuiltInNumElementsFunction() {
222 testBuiltInNumElementsFunction();
223 }
224
225 void NKSPTest::testNKSPBuiltInSearchFunction() {
226 testBuiltInSearchFunction();
227 }
228
229 void NKSPTest::testNKSPIfStatement() {
230 testIfStatement();
231 }
232
233 void NKSPTest::testNKSPWhileStatement() {
234 testWhileStatement();
235 }

  ViewVC Help
Powered by ViewVC