Ignore:
Timestamp:
Sep 25, 2011, 12:21:44 AM (9 years ago)
Author:
sam
Message:

test: give more explicit names to unit test cases.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/half.cpp

    r942 r979  
    2323LOLUNIT_FIXTURE(HalfTest)
    2424{
    25 public:
    26     LOLUNIT_TEST(test_half_from_float)
     25    LOLUNIT_TEST(FloatToHalf)
    2726    {
    2827        for (size_t i = 0; i < sizeof(pairs) / sizeof(*pairs); i++)
     
    3534    }
    3635
    37     LOLUNIT_TEST(test_half_makeaccurate)
     36    LOLUNIT_TEST(FloatToHalfAccurate)
    3837    {
    3938        for (size_t i = 0; i < sizeof(pairs) / sizeof(*pairs); i++)
     
    4645    }
    4746
    48     LOLUNIT_TEST(test_half_makebits)
     47    LOLUNIT_TEST(BitsToHalf)
    4948    {
    5049        for (unsigned int i = 0; i < 0x10000; i++)
     
    5756    }
    5857
    59     LOLUNIT_TEST(test_half_is_nan)
     58    LOLUNIT_TEST(HalfIsNaN)
    6059    {
    6160        LOLUNIT_ASSERT(half::makebits(0x7c01).is_nan());
     
    7372    }
    7473
    75     LOLUNIT_TEST(test_half_is_inf)
     74    LOLUNIT_TEST(HalfIsInf)
    7675    {
    7776        LOLUNIT_ASSERT(half(65536.0f).is_inf());
     
    9089    }
    9190
    92     LOLUNIT_TEST(test_half_is_finite)
     91    LOLUNIT_TEST(HalfIsFinite)
    9392    {
    9493        LOLUNIT_ASSERT(half(0.0f).is_finite());
     
    107106    }
    108107
    109     LOLUNIT_TEST(test_half_is_normal)
     108    LOLUNIT_TEST(HalfIsNormal)
    110109    {
    111110        LOLUNIT_ASSERT(half(0.0f).is_normal());
     
    124123    }
    125124
    126     LOLUNIT_TEST(test_half_classify)
     125    LOLUNIT_TEST(HalfClassify)
    127126    {
    128127        for (uint32_t i = 0; i < 0x10000; i++)
     
    148147    }
    149148
    150     LOLUNIT_TEST(test_half_to_float)
     149    LOLUNIT_TEST(HalfToFloat)
    151150    {
    152151        for (size_t i = 0; i < sizeof(pairs) / sizeof(*pairs); i++)
     
    177176    }
    178177
    179     LOLUNIT_TEST(test_half_to_int)
     178    LOLUNIT_TEST(HalfToInt)
    180179    {
    181180        LOLUNIT_ASSERT_EQUAL((int)(half)(0.0f), 0);
     
    191190    }
    192191
    193     LOLUNIT_TEST(test_float_op_half)
     192    LOLUNIT_TEST(FloatOpHalf)
    194193    {
    195194        half zero = 0;
     
    232231    }
    233232
    234     LOLUNIT_TEST(test_half_op_float)
     233    LOLUNIT_TEST(HalfOpFloat)
    235234    {
    236235        half zero = 0;
     
    274273    }
    275274
    276 private:
    277275    struct TestPair { float f; uint16_t x; };
    278276
Note: See TracChangeset for help on using the changeset viewer.