Example #1
0
 def test_SDL_WINDOWPOS_ISUNDEFINED(self):
     assert video.SDL_WINDOWPOS_ISUNDEFINED(video.SDL_WINDOWPOS_UNDEFINED)
     assert not video.SDL_WINDOWPOS_ISUNDEFINED(
         video.SDL_WINDOWPOS_CENTERED)
     for x in range(0xFFFF):
         undef = video.SDL_WINDOWPOS_UNDEFINED_DISPLAY(x)
         assert video.SDL_WINDOWPOS_ISUNDEFINED(undef)
Example #2
0
 def test_SDL_WINDOWPOS_ISUNDEFINED(self):
     self.assertTrue(
         video.SDL_WINDOWPOS_ISUNDEFINED(video.SDL_WINDOWPOS_UNDEFINED))
     self.assertFalse(
         video.SDL_WINDOWPOS_ISUNDEFINED(video.SDL_WINDOWPOS_CENTERED))
     for x in range(0xFFFF):
         self.assertTrue(
             video.SDL_WINDOWPOS_ISUNDEFINED(
                 video.SDL_WINDOWPOS_UNDEFINED_DISPLAY(x)))