Changeset 2537


Ignore:
Timestamp:
Mar 1, 2013, 5:24:25 PM (8 years ago)
Author:
sam
Message:

test: disable a few non-essential and potentially incorrect unit tests.

File:
1 edited

Legend:

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

    r2432 r2537  
    124124            LOLUNIT_SET_CONTEXT(&rgb[0]);
    125125
     126            /* Don’t check hue if saturation is zero. */
    126127            if (r != g || g != b)
    127128                LOLUNIT_ASSERT_DOUBLES_EQUAL(v2.x, v3.x, 0.0001);
    128             LOLUNIT_ASSERT_DOUBLES_EQUAL(v2.y, v3.y, 0.0001);
     129            /* Don’t check saturation if lightness is zero. */
     130            if (r || g || b)
     131                LOLUNIT_ASSERT_DOUBLES_EQUAL(v2.y, v3.y, 0.0001);
    129132            LOLUNIT_ASSERT_DOUBLES_EQUAL(v2.z, v3.z, 0.0001);
    130133
Note: See TracChangeset for help on using the changeset viewer.