17 #define TT_NO_DEPRECATION_WARNINGS
25 int testAssertionCount = 0;
31 myDataspace.set(
TT(
"dataspace"),
TT(
"position"));
46 myDataspace.
set(
TT(
"inputUnit"),
TT(
"xyz"));
47 myDataspace.set(
TT(
"outputUnit"),
TT(
"xyz"));
59 myDataspace.send(
TT(
"convert"), v, v);
61 TTTestAssertion(
"xyz to xyz",
62 TTTestFloat64ArrayEquivalence(v, expected),
69 myDataspace.set(
TT(
"inputUnit"),
TT(
"xy"));
70 myDataspace.set(
TT(
"outputUnit"),
TT(
"xyz"));
81 myDataspace.send(
TT(
"convert"), v, v);
83 TTTestAssertion(
"xy to xyz",
84 TTTestFloat64ArrayEquivalence(v, expected),
91 myDataspace.set(
TT(
"inputUnit"),
TT(
"aed"));
92 myDataspace.set(
TT(
"outputUnit"),
TT(
"xyz"));
104 myDataspace.send(
TT(
"convert"), v, v);
106 TTTestAssertion(
"aed to xyz",
107 TTTestFloat64ArrayEquivalence(v, expected),
113 myDataspace.set(
TT(
"inputUnit"),
TT(
"openGL"));
114 myDataspace.set(
TT(
"outputUnit"),
TT(
"xyz"));
126 myDataspace.send(
TT(
"convert"), v, v);
128 TTTestAssertion(
"openGL to xyz",
129 TTTestFloat64ArrayEquivalence(v, expected),
134 myDataspace.set(
TT(
"inputUnit"),
TT(
"polar"));
135 myDataspace.set(
TT(
"outputUnit"),
TT(
"xyz"));
146 myDataspace.send(
TT(
"convert"), v, v);
148 TTTestAssertion(
"polar to xyz",
149 TTTestFloat64ArrayEquivalence(v, expected),
153 myDataspace.set(
TT(
"inputUnit"),
TT(
"daz"));
154 myDataspace.set(
TT(
"outputUnit"),
TT(
"xyz"));
166 myDataspace.send(
TT(
"convert"), v, v);
168 TTTestAssertion(
"cylindrical to xyz",
169 TTTestFloat64ArrayEquivalence(v, expected),
182 myDataspace.set(
TT(
"inputUnit"),
TT(
"xyz"));
183 myDataspace.set(
TT(
"outputUnit"),
TT(
"xy"));
194 myDataspace.send(
TT(
"convert"), v, v);
196 TTTestAssertion(
"xyz to xy",
197 TTTestFloat64ArrayEquivalence(v, expected),
203 myDataspace.set(
TT(
"inputUnit"),
TT(
"xyz"));
204 myDataspace.set(
TT(
"outputUnit"),
TT(
"aed"));
216 myDataspace.send(
TT(
"convert"), v, v);
218 TTTestAssertion(
"xyz to aed",
219 TTTestFloat64ArrayEquivalence(v, expected),
225 myDataspace.set(
TT(
"inputUnit"),
TT(
"xyz"));
226 myDataspace.set(
TT(
"outputUnit"),
TT(
"openGL"));
238 myDataspace.send(
TT(
"convert"), v, v);
240 TTTestAssertion(
"xyz to openGL",
241 TTTestFloat64ArrayEquivalence(v, expected),
246 myDataspace.set(
TT(
"inputUnit"),
TT(
"xyz"));
247 myDataspace.set(
TT(
"outputUnit"),
TT(
"polar"));
258 myDataspace.send(
TT(
"convert"), v, v);
261 TTTestAssertion(
"xyz to polar",
262 TTTestFloat64ArrayEquivalence(v, expected),
268 myDataspace.set(
TT(
"inputUnit"),
TT(
"xyz"));
269 myDataspace.set(
TT(
"outputUnit"),
TT(
"daz"));
281 myDataspace.send(
TT(
"convert"), v, v);
283 TTTestAssertion(
"xyz to cylindrical",
284 TTTestFloat64ArrayEquivalence(v, expected),
294 myDataspace.set(
TT(
"inputUnit"),
TT(
"daz"));
295 myDataspace.set(
TT(
"outputUnit"),
TT(
"xy"));
307 myDataspace.send(
TT(
"convert"), v, v);
309 TTTestAssertion(
"cylindrical to xy",
310 TTTestFloat64ArrayEquivalence(v, expected),
318 testAssertionCount = 1;
321 return TTTestFinish(testAssertionCount, errorCount, returnedTestInfo);
Create and use Jamoma object instances.
The PositionDataspace converts between different untis describing position.
double TTFloat64
64 bit floating point number
#define TT
This macro is defined as a shortcut for doing a lookup in the symbol table.
void set(const TTUInt16 index, const T &anElementValue)
DEPRECATED.
void TTFOUNDATION_EXPORT TTLogMessage(TTImmutableCString message,...)
Platform and host independent method for posting log messages.
TTErr
Jamoma Error Codes Enumeration of error codes that might be returned by any of the TTBlue functions a...
void resize(size_type n)
Change the number of elements.
[doxygenAppendixC_copyExample]