Lines Matching refs:test
931 XStandardColormap test; /* Test cube */
966 /* Next test. Make sure B + G = C, R + B = M, R + G = Y,
1009 test.red_max = smallMax; test.red_mult = smallMult;
1011 test.blue_max = middleMax; test.blue_mult = middleMult;
1012 test.green_max = largeMax; test.green_mult = largeMult;
1014 test.green_max = middleMax; test.green_mult = middleMult;
1015 test.blue_max = largeMax; test.blue_mult = largeMult;
1018 test.green_max = smallMax; test.green_mult = smallMult;
1020 test.blue_max = middleMax; test.blue_mult = middleMult;
1021 test.red_max = largeMax; test.red_mult = largeMult;
1023 test.red_max = middleMax; test.red_mult = middleMult;
1024 test.blue_max = largeMax; test.blue_mult = largeMult;
1027 test.blue_max = smallMax; test.blue_mult = smallMult;
1029 test.red_max = middleMax; test.red_mult = middleMult;
1030 test.green_max = largeMax; test.green_mult = largeMult;
1032 test.green_max = middleMax; test.green_mult = middleMult;
1033 test.red_max = largeMax; test.red_mult = largeMult;
1039 test.red_mult *= -1;
1040 test.green_mult *= -1;
1041 test.blue_mult *= -1;
1044 /* Finally, test the hypothesis! The answer must be correct within 1
1048 #define calc(i, max, mult) ((((i / test.mult) % \
1049 (test.max + 1)) * SCALE) / test.max)
1059 cube->red_max = test.red_max;
1060 cube->red_mult = test.red_mult;
1061 cube->green_max = test.green_max;
1062 cube->green_mult = test.green_mult;
1063 cube->blue_max = test.blue_max;
1064 cube->blue_mult = test.blue_mult;