#include #include #include #include #include #include #include #include #include #define TEST(x) if (argc < 2 || !strcmp (argv[1], #x)) x(); int main (int argc, char *argv[]) { std::cout << "\ntesting type half:\n\n" << std::flush; TEST (testSize); TEST (testArithmetic); TEST (testNormalizedConversionError); TEST (testDenormalizedConversionError); TEST (testRoundingError); TEST (testBitPatterns); TEST (testClassification); TEST (testLimits); TEST (testFunction); return 0; }