17 #define TT_NO_DEPRECATION_WARNINGS
25 int testAssertionCount = 0;
31 myDataspace.set(
TT(
"dataspace"),
TT(
"distance"));
46 myDataspace.
set(
TT(
"inputUnit"),
TT(
"meters"));
47 myDataspace.set(
TT(
"outputUnit"),
TT(
"meters"));
52 myDataspace.send(
TT(
"convert"), v, v);
54 TTTestAssertion(
"meters to meters",
63 myDataspace.set(
TT(
"inputUnit"),
TT(
"cm"));
64 myDataspace.set(
TT(
"outputUnit"),
TT(
"meters"));
69 myDataspace.send(
TT(
"convert"), v, v);
71 TTTestAssertion(
"cm to meters",
81 myDataspace.set(
TT(
"inputUnit"),
TT(
"inches"));
82 myDataspace.set(
TT(
"outputUnit"),
TT(
"meter"));
87 myDataspace.send(
TT(
"convert"), v, v);
89 TTTestAssertion(
"inch to meters",
99 myDataspace.set(
TT(
"inputUnit"),
TT(
"feet"));
100 myDataspace.set(
TT(
"outputUnit"),
TT(
"meters"));
105 myDataspace.send(
TT(
"convert"), v, v);
107 TTTestAssertion(
"inches to meters",
120 myDataspace.set(
TT(
"inputUnit"),
TT(
"meters"));
121 myDataspace.set(
TT(
"outputUnit"),
TT(
"cm"));
126 myDataspace.send(
TT(
"convert"), v, v);
128 TTTestAssertion(
"meters to cm",
136 myDataspace.set(
TT(
"inputUnit"),
TT(
"meters"));
137 myDataspace.set(
TT(
"outputUnit"),
TT(
"inches"));
142 myDataspace.send(
TT(
"convert"), v, v);
144 TTTestAssertion(
"meters to inches",
151 myDataspace.set(
TT(
"inputUnit"),
TT(
"meters"));
152 myDataspace.set(
TT(
"outputUnit"),
TT(
"feet"));
157 myDataspace.send(
TT(
"convert"), v, v);
159 TTTestAssertion(
"meters to feet",
167 testAssertionCount = 1;
170 return TTTestFinish(testAssertionCount, errorCount, returnedTestInfo);
Create and use Jamoma object instances.
double TTFloat64
64 bit floating point number
#define TT
This macro is defined as a shortcut for doing a lookup in the symbol table.
The DistanceDataspace converts between different measurement untis describing distance.
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...
[doxygenAppendixC_copyExample]