Home | History | Annotate | Download | only in test

Lines Matching defs:max

91   Sint64 min, max;
100 max = (1 << 7) - 1;
102 SDLTest_AssertCheck(result >= min && result <= max, "Verify result value, expected: [%lld,%lld], got: %lld", min, max, result);
111 max = (1 << 15) - 1;
113 SDLTest_AssertCheck(result >= min && result <= max, "Verify result value, expected: [%lld,%lld], got: %lld", min, max, result);
122 max = ((Sint64)1 << 31) - 1;
124 SDLTest_AssertCheck(result >= min && result <= max, "Verify result value, expected: [%lld,%lld], got: %lld", min, max, result);
1043 Sint32 min, max;
1055 max = min + (Sint32)SDLTest_RandomUint8() + 2;
1056 result = SDLTest_RandomIntegerInRange(min, max);
1057 SDLTest_AssertPass("Call to SDLTest_RandomIntegerInRange(min,max)");
1058 SDLTest_AssertCheck(min <= result && result <= max, "Validated returned value; expected: [%d,%d], got: %d", min, max, result);
1062 max = min + 1;
1063 result = SDLTest_RandomIntegerInRange(min, max);
1065 SDLTest_AssertCheck(min <= result && result <= max, "Validated returned value; expected: [%d,%d], got: %d", min, max, result);
1069 max = min;
1070 result = SDLTest_RandomIntegerInRange(min, max);
1076 max = 0;
1077 result = SDLTest_RandomIntegerInRange(min, max);
1079 SDLTest_AssertCheck(result == 0, "Validated returned value; expected: 0, got: %d", min, max, result);
1081 /* Swapped min-max */
1083 max = min + (Sint32)SDLTest_RandomUint8() + 2;
1084 result = SDLTest_RandomIntegerInRange(max, min);
1085 SDLTest_AssertPass("Call to SDLTest_RandomIntegerInRange(max,min)");
1086 SDLTest_AssertCheck(min <= result && result <= max, "Validated returned value; expected: [%d,%d], got: %d", min, max, result);
1090 max = long_max + (Sint32)SDLTest_RandomSint16();
1091 result = SDLTest_RandomIntegerInRange(min, max);
1093 SDLTest_AssertCheck(min <= result && result <= max, "Validated returned value; expected: [%d,%d], got: %d", min, max, result);
1095 /* Range with max at integer limit */
1097 max = long_max;
1098 result = SDLTest_RandomIntegerInRange(min, max);
1100 SDLTest_AssertCheck(min <= result && result <= max, "Validated returned value; expected: [%d,%d], got: %d", min, max, result);
1104 max = long_max;
1105 result = SDLTest_RandomIntegerInRange(min, max);
1107 SDLTest_AssertCheck(min <= result && result <= max, "Validated returned value; expected: [%d,%d], got: %d", min, max, result);