units-test.h revision 9cf82ac568634e779873c4bf6cd6b7bdd465556d
#include <cxxtest/TestSuite.h>
#include <math.h>
{
}
// createSuite and destroySuite get us per-suite setup and teardown
// without us having to worry about static initialization order, etc.
void testConversions()
{
{ 1.0, "pt", 1.0 },
{ 5.0, "pt", 5.0 },
{ 1.0, "in", 72.0 },
{ 2.0, "in", 144.0 },
{ 254., "mm", 720.0 },
{ 254., "cm", 7200. },
{ 254., "m", 720000. },
{ 1.5, "mm", (15 * 72. / 254) }
};
for (unsigned i = 0; i < G_N_ELEMENTS(tests); ++i) {
double tmp = c.x;
}
}
void testUnitTable()
{
}
/* N.B. Wrongly returns false if both near 0. (Not a problem for current users.) */
bool approx_equal(double const x, double const y)
{
}
{
}
{
}
};
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :encoding=utf-8:textwidth=99 :