test/testautomation_sdltest.c
changeset 7614 af0bd07212bd
parent 7191 75360622e65f
child 7721 bdf8c2c84e14
     1.1 --- a/test/testautomation_sdltest.c	Thu Aug 08 21:16:29 2013 -0700
     1.2 +++ b/test/testautomation_sdltest.c	Thu Aug 08 21:29:30 2013 -0700
     1.3 @@ -63,7 +63,7 @@
     1.4    SDLTest_AssertCheck(result >= 0 && result <= (Sint64)umax, "Verify result value, expected: [0,%llu], got: %lld", umax, result);
     1.5  
     1.6    result = (Sint64)SDLTest_RandomSint8();
     1.7 -  min = 1 - (1 << 7);
     1.8 +  min = 0 - (1 << 7);
     1.9    max =     (1 << 7) - 1;
    1.10    SDLTest_AssertPass("Call to SDLTest_RandomSint8");
    1.11    SDLTest_AssertCheck(result >= min && result <= max, "Verify result value, expected: [%lld,%lld], got: %lld", min, max, result);
    1.12 @@ -74,7 +74,7 @@
    1.13    SDLTest_AssertCheck(result >= 0 && result <= (Sint64)umax, "Verify result value, expected: [0,%llu], got: %lld", umax, result);
    1.14  
    1.15    result = (Sint64)SDLTest_RandomSint16();
    1.16 -  min = 1 - (1 << 15);
    1.17 +  min = 0 - (1 << 15);
    1.18    max =     (1 << 15) - 1;
    1.19    SDLTest_AssertPass("Call to SDLTest_RandomSint16");
    1.20    SDLTest_AssertCheck(result >= min && result <= max, "Verify result value, expected: [%lld,%lld], got: %lld", min, max, result);
    1.21 @@ -85,7 +85,7 @@
    1.22    SDLTest_AssertCheck(result >= 0 && result <= (Sint64)umax, "Verify result value, expected: [0,%llu], got: %lld", umax, result);
    1.23  
    1.24    result = (Sint64)SDLTest_RandomSint32();
    1.25 -  min = 1 - ((Sint64)1 << 31);
    1.26 +  min = 0 - ((Sint64)1 << 31);
    1.27    max =     ((Sint64)1 << 31) - 1;
    1.28    SDLTest_AssertPass("Call to SDLTest_RandomSint32");
    1.29    SDLTest_AssertCheck(result >= min && result <= max, "Verify result value, expected: [%lld,%lld], got: %lld", min, max, result);