From: Breno G. de Oliveira Date: Mon, 12 Oct 2009 04:50:24 +0000 (-0300) Subject: constants testing X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=7f96d96148f4da8ffb7712cec5b7487e3c8d0f99;p=sdlgit%2FSDL_perl.git constants testing --- diff --git a/t/constantspm.t b/t/constantspm.t new file mode 100644 index 0000000..43d40fd --- /dev/null +++ b/t/constantspm.t @@ -0,0 +1,309 @@ +use strict; +use warnings; +use Test::More tests => 1 + 272; # use_ok + constants + +BEGIN { use_ok('SDL::Constants') } + +# 'use' should have imported all constants +is( AUDIO_S16, 32784, 'AUDIO_S16 should be imported' ); +is( AUDIO_S16MSB, 36880, 'AUDIO_S16MSB should be imported' ); +is( AUDIO_S8, 32776, 'AUDIO_S8 should be imported' ); +is( AUDIO_U16, 16, 'AUDIO_U16 should be imported' ); +is( AUDIO_U16MSB, 4112, 'AUDIO_U16MSB should be imported' ); +is( AUDIO_U8, 8, 'AUDIO_U8 should be imported' ); + +is( CD_ERROR, -1, 'CD_ERROR should be imported' ); +is( CD_PAUSED, 3, 'CD_PAUSED should be imported' ); +is( CD_PLAYING, 2, 'CD_PLAYING should be imported' ); +is( CD_STOPPED, 1, 'CD_STOPPED should be imported' ); +is( CD_TRAYEMPTY, 0, 'CD_TRAYEMPTY should be imported' ); + +is( INADDR_ANY, 0, 'INADDR_ANY should be imported' ); +is( INADDR_NONE, -1, 'INADDR_NONE should be imported' ); + +is( KMOD_ALT, 768, 'KMOD_ALT should be imported' ); +is( KMOD_CAPS, 8192, 'KMOD_CAPS should be imported' ); +is( KMOD_CTRL, 192, 'KMOD_CTRL should be imported' ); +is( KMOD_LALT, 256, 'KMOD_LALT should be imported' ); +is( KMOD_LCTRL, 64, 'KMOD_LCTRL should be imported' ); +is( KMOD_LSHIFT, 1, 'KMOD_LSHIFT should be imported' ); +is( KMOD_NONE, 0, 'KMOD_NONE should be imported' ); +is( KMOD_NUM, 4096, 'KMOD_NUM should be imported' ); +is( KMOD_RALT, 512, 'KMOD_RALT should be imported' ); +is( KMOD_RCTRL, 128, 'KMOD_RCTRL should be imported' ); +is( KMOD_RSHIFT, 2, 'KMOD_RSHIFT should be imported' ); +is( KMOD_SHIFT, 3, 'KMOD_SHIFT should be imported' ); + +is( MIX_DEFAULT_CHANNELS, 2, 'MIX_DEFAULT_CHANNELS should be imported' ); +is( MIX_DEFAULT_FORMAT, 32784, 'MIX_DEFAULT_FORMAT should be imported' ); +is( MIX_DEFAULT_FREQUENCY, 22050, 'MIX_DEFAULT_FREQUENCY should be imported' ); +is( MIX_FADING_IN, 2, 'MIX_FADING_IN should be imported' ); +is( MIX_FADING_OUT, 1, 'MIX_FADING_OUT should be imported' ); +is( MIX_MAX_VOLUME, 128, 'MIX_MAX_VOLUME should be imported' ); +is( MIX_NO_FADING, 0, 'MIX_NO_FADING should be imported' ); + +is( SDLK_0, 48, 'SDLK_0 should be imported' ); +is( SDLK_1, 49, 'SDLK_1 should be imported' ); +is( SDLK_2, 50, 'SDLK_2 should be imported' ); +is( SDLK_3, 51, 'SDLK_3 should be imported' ); +is( SDLK_4, 52, 'SDLK_4 should be imported' ); +is( SDLK_5, 53, 'SDLK_5 should be imported' ); +is( SDLK_6, 54, 'SDLK_6 should be imported' ); +is( SDLK_7, 55, 'SDLK_7 should be imported' ); +is( SDLK_8, 56, 'SDLK_8 should be imported' ); +is( SDLK_9, 57, 'SDLK_9 should be imported' ); +is( SDLK_AMPERSAND, 38, 'SDLK_AMPERSAND should be imported' ); +is( SDLK_ASTERISK, 42, 'SDLK_ASTERISK should be imported' ); +is( SDLK_AT, 64, 'SDLK_AT should be imported' ); +is( SDLK_BACKQUOTE, 96, 'SDLK_BACKQUOTE should be imported' ); +is( SDLK_BACKSLASH, 92, 'SDLK_BACKSLASH should be imported' ); +is( SDLK_BACKSPACE, 8, 'SDLK_BACKSPACE should be imported' ); +is( SDLK_BREAK, 318, 'SDLK_BREAK should be imported' ); +is( SDLK_CAPSLOCK, 301, 'SDLK_CAPSLOCK should be imported' ); +is( SDLK_CARET, 94, 'SDLK_CARET should be imported' ); +is( SDLK_CLEAR, 12, 'SDLK_CLEAR should be imported' ); +is( SDLK_COLON, 58, 'SDLK_COLON should be imported' ); +is( SDLK_COMMA, 44, 'SDLK_COMMA should be imported' ); +is( SDLK_DELETE, 127, 'SDLK_DELETE should be imported' ); +is( SDLK_DOLLAR, 36, 'SDLK_DOLLAR should be imported' ); +is( SDLK_DOWN, 274, 'SDLK_DOWN should be imported' ); +is( SDLK_END, 279, 'SDLK_END should be imported' ); +is( SDLK_EQUALS, 61, 'SDLK_EQUALS should be imported' ); +is( SDLK_ESCAPE, 27, 'SDLK_ESCAPE should be imported' ); +is( SDLK_EURO, 321, 'SDLK_EURO should be imported' ); +is( SDLK_EXCLAIM, 33, 'SDLK_EXCLAIM should be imported' ); +is( SDLK_F1, 282, 'SDLK_F1 should be imported' ); +is( SDLK_F10, 291, 'SDLK_F10 should be imported' ); +is( SDLK_F11, 292, 'SDLK_F11 should be imported' ); +is( SDLK_F12, 293, 'SDLK_F12 should be imported' ); +is( SDLK_F13, 294, 'SDLK_F13 should be imported' ); +is( SDLK_F14, 295, 'SDLK_F14 should be imported' ); +is( SDLK_F15, 296, 'SDLK_F15 should be imported' ); +is( SDLK_F2, 283, 'SDLK_F2 should be imported' ); +is( SDLK_F3, 284, 'SDLK_F3 should be imported' ); +is( SDLK_F4, 285, 'SDLK_F4 should be imported' ); +is( SDLK_F5, 286, 'SDLK_F5 should be imported' ); +is( SDLK_F6, 287, 'SDLK_F6 should be imported' ); +is( SDLK_F7, 288, 'SDLK_F7 should be imported' ); +is( SDLK_F8, 289, 'SDLK_F8 should be imported' ); +is( SDLK_F9, 290, 'SDLK_F9 should be imported' ); +is( SDLK_GREATER, 62, 'SDLK_GREATER should be imported' ); +is( SDLK_HASH, 35, 'SDLK_HASH should be imported' ); +is( SDLK_HELP, 315, 'SDLK_HELP should be imported' ); +is( SDLK_HOME, 278, 'SDLK_HOME should be imported' ); +is( SDLK_INSERT, 277, 'SDLK_INSERT should be imported' ); +is( SDLK_KP0, 256, 'SDLK_KP0 should be imported' ); +is( SDLK_KP1, 257, 'SDLK_KP1 should be imported' ); +is( SDLK_KP2, 258, 'SDLK_KP2 should be imported' ); +is( SDLK_KP3, 259, 'SDLK_KP3 should be imported' ); +is( SDLK_KP4, 260, 'SDLK_KP4 should be imported' ); +is( SDLK_KP5, 261, 'SDLK_KP5 should be imported' ); +is( SDLK_KP6, 262, 'SDLK_KP6 should be imported' ); +is( SDLK_KP7, 263, 'SDLK_KP7 should be imported' ); +is( SDLK_KP8, 264, 'SDLK_KP8 should be imported' ); +is( SDLK_KP9, 265, 'SDLK_KP9 should be imported' ); +is( SDLK_KP_DIVIDE, 267, 'SDLK_KP_DIVIDE should be imported' ); +is( SDLK_KP_ENTER, 271, 'SDLK_KP_ENTER should be imported' ); +is( SDLK_KP_EQUALS, 272, 'SDLK_KP_EQUALS should be imported' ); +is( SDLK_KP_MINUS, 269, 'SDLK_KP_MINUS should be imported' ); +is( SDLK_KP_MULTIPLY, 268, 'SDLK_KP_MULTIPLY should be imported' ); +is( SDLK_KP_PERIOD, 266, 'SDLK_KP_PERIOD should be imported' ); +is( SDLK_KP_PLUS, 270, 'SDLK_KP_PLUS should be imported' ); +is( SDLK_LALT, 308, 'SDLK_LALT should be imported' ); +is( SDLK_LCTRL, 306, 'SDLK_LCTRL should be imported' ); +is( SDLK_LEFT, 276, 'SDLK_LEFT should be imported' ); +is( SDLK_LEFTBRACKET, 91, 'SDLK_LEFTBRACKET should be imported' ); +is( SDLK_LEFTPAREN, 40, 'SDLK_LEFTPAREN should be imported' ); +is( SDLK_LESS, 60, 'SDLK_LESS should be imported' ); +is( SDLK_LMETA, 310, 'SDLK_LMETA should be imported' ); +is( SDLK_LSHIFT, 304, 'SDLK_LSHIFT should be imported' ); +is( SDLK_LSUPER, 311, 'SDLK_LSUPER should be imported' ); +is( SDLK_MENU, 319, 'SDLK_MENU should be imported' ); +is( SDLK_MINUS, 45, 'SDLK_MINUS should be imported' ); +is( SDLK_MODE, 313, 'SDLK_MODE should be imported' ); +is( SDLK_NUMLOCK, 300, 'SDLK_NUMLOCK should be imported' ); +is( SDLK_PAGEDOWN, 281, 'SDLK_PAGEDOWN should be imported' ); +is( SDLK_PAGEUP, 280, 'SDLK_PAGEUP should be imported' ); +is( SDLK_PAUSE, 19, 'SDLK_PAUSE should be imported' ); +is( SDLK_PERIOD, 46, 'SDLK_PERIOD should be imported' ); +is( SDLK_PLUS, 43, 'SDLK_PLUS should be imported' ); +is( SDLK_POWER, 320, 'SDLK_POWER should be imported' ); +is( SDLK_PRINT, 316, 'SDLK_PRINT should be imported' ); +is( SDLK_QUESTION, 63, 'SDLK_QUESTION should be imported' ); +is( SDLK_QUOTE, 39, 'SDLK_QUOTE should be imported' ); +is( SDLK_QUOTEDBL, 34, 'SDLK_QUOTEDBL should be imported' ); +is( SDLK_RALT, 307, 'SDLK_RALT should be imported' ); +is( SDLK_RCTRL, 305, 'SDLK_RCTRL should be imported' ); +is( SDLK_RETURN, 13, 'SDLK_RETURN should be imported' ); +is( SDLK_RIGHT, 275, 'SDLK_RIGHT should be imported' ); +is( SDLK_RIGHTBRACKET, 93, 'SDLK_RIGHTBRACKET should be imported' ); +is( SDLK_RIGHTPAREN, 41, 'SDLK_RIGHTPAREN should be imported' ); +is( SDLK_RMETA, 309, 'SDLK_RMETA should be imported' ); +is( SDLK_RSHIFT, 303, 'SDLK_RSHIFT should be imported' ); +is( SDLK_RSUPER, 312, 'SDLK_RSUPER should be imported' ); +is( SDLK_SCROLLOCK, 302, 'SDLK_SCROLLOCK should be imported' ); +is( SDLK_SEMICOLON, 59, 'SDLK_SEMICOLON should be imported' ); +is( SDLK_SLASH, 47, 'SDLK_SLASH should be imported' ); +is( SDLK_SPACE, 32, 'SDLK_SPACE should be imported' ); +is( SDLK_SYSREQ, 317, 'SDLK_SYSREQ should be imported' ); +is( SDLK_TAB, 9, 'SDLK_TAB should be imported' ); +is( SDLK_UNDERSCORE, 95, 'SDLK_UNDERSCORE should be imported' ); +is( SDLK_UP, 273, 'SDLK_UP should be imported' ); +is( SDLK_a, 97, 'SDLK_a should be imported' ); +is( SDLK_b, 98, 'SDLK_b should be imported' ); +is( SDLK_c, 99, 'SDLK_c should be imported' ); +is( SDLK_d, 100, 'SDLK_d should be imported' ); +is( SDLK_e, 101, 'SDLK_e should be imported' ); +is( SDLK_f, 102, 'SDLK_f should be imported' ); +is( SDLK_g, 103, 'SDLK_g should be imported' ); +is( SDLK_h, 104, 'SDLK_h should be imported' ); +is( SDLK_i, 105, 'SDLK_i should be imported' ); +is( SDLK_j, 106, 'SDLK_j should be imported' ); +is( SDLK_k, 107, 'SDLK_k should be imported' ); +is( SDLK_l, 108, 'SDLK_l should be imported' ); +is( SDLK_m, 109, 'SDLK_m should be imported' ); +is( SDLK_n, 110, 'SDLK_n should be imported' ); +is( SDLK_o, 111, 'SDLK_o should be imported' ); +is( SDLK_p, 112, 'SDLK_p should be imported' ); +is( SDLK_q, 113, 'SDLK_q should be imported' ); +is( SDLK_r, 114, 'SDLK_r should be imported' ); +is( SDLK_s, 115, 'SDLK_s should be imported' ); +is( SDLK_t, 116, 'SDLK_t should be imported' ); +is( SDLK_u, 117, 'SDLK_u should be imported' ); +is( SDLK_v, 118, 'SDLK_v should be imported' ); +is( SDLK_w, 119, 'SDLK_w should be imported' ); +is( SDLK_x, 120, 'SDLK_x should be imported' ); +is( SDLK_y, 121, 'SDLK_y should be imported' ); +is( SDLK_z, 122, 'SDLK_z should be imported' ); + +is( SDL_ACTIVEEVENT, 1, 'SDL_ACTIVEEVENT should be imported' ); +is( SDL_ANYFORMAT, 268435456, 'SDL_ANYFORMAT should be imported' ); +is( SDL_APPACTIVE, 4, 'SDL_APPACTIVE should be imported' ); +is( SDL_APPINPUTFOCUS, 2, 'SDL_APPINPUTFOCUS should be imported' ); +is( SDL_APPMOUSEFOCUS, 1, 'SDL_APPMOUSEFOCUS should be imported' ); +is( SDL_ASYNCBLIT, 4, 'SDL_ASYNCBLIT should be imported' ); + +is( SDL_AUDIO_PAUSED, 2, 'SDL_AUDIO_PAUSED should be imported' ); +is( SDL_AUDIO_PLAYING, 1, 'SDL_AUDIO_PLAYING should be imported' ); +is( SDL_AUDIO_STOPPED, 0, 'SDL_AUDIO_STOPPED should be imported' ); + +is( SDL_BUTTON_LEFT, 1, 'SDL_BUTTON_LEFT should be imported' ); +is( SDL_BUTTON_MIDDLE, 2, 'SDL_BUTTON_MIDDLE should be imported' ); +is( SDL_BUTTON_RIGHT, 4, 'SDL_BUTTON_RIGHT should be imported' ); +is( SDL_BUTTON_WHEELUP, 8, 'SDL_BUTTON_WHEELUP should be imported' ); +is( SDL_BUTTON_WHEELDOWN, 16, 'SDL_BUTTON_WHEELDOWN should be imported' ); + +is( SDL_DOUBLEBUF, 1073741824, 'SDL_DOUBLEBUF should be imported' ); +is( SDL_ENABLE, 1, 'SDL_ENABLE should be imported' ); +is( SDL_FULLSCREEN, -2147483648, 'SDL_FULLSCREEN should be imported' ); + +is( SDL_GL_ACCUM_ALPHA_SIZE, 11, 'SDL_GL_ACCUM_ALPHA_SIZE should be imported' ); +is( SDL_GL_ACCUM_BLUE_SIZE, 10, 'SDL_GL_ACCUM_BLUE_SIZE should be imported' ); +is( SDL_GL_ACCUM_GREEN_SIZE, 9, 'SDL_GL_ACCUM_GREEN_SIZE should be imported' ); +is( SDL_GL_ACCUM_RED_SIZE, 8, 'SDL_GL_ACCUM_RED_SIZE should be imported' ); +is( SDL_GL_ALPHA_SIZE, 3, 'SDL_GL_ALPHA_SIZE should be imported' ); +is( SDL_GL_BLUE_SIZE, 2, 'SDL_GL_BLUE_SIZE should be imported' ); +is( SDL_GL_BUFFER_SIZE, 4, 'SDL_GL_BUFFER_SIZE should be imported' ); +is( SDL_GL_DEPTH_SIZE, 6, 'SDL_GL_DEPTH_SIZE should be imported' ); +is( SDL_GL_DOUBLEBUFFER, 5, 'SDL_GL_DOUBLEBUFFER should be imported' ); +is( SDL_GL_GREEN_SIZE, 1, 'SDL_GL_GREEN_SIZE should be imported' ); +is( SDL_GL_RED_SIZE, 0, 'SDL_GL_RED_SIZE should be imported' ); +is( SDL_GL_STENCIL_SIZE, 7, 'SDL_GL_STENCIL_SIZE should be imported' ); + +is( SDL_GRAB_OFF, 0, 'SDL_GRAB_OFF should be imported' ); +is( SDL_GRAB_ON, 1, 'SDL_GRAB_ON should be imported' ); +is( SDL_GRAB_QUERY, -1, 'SDL_GRAB_QUERY should be imported' ); + +is( SDL_HAT_CENTERED, 0, 'SDL_HAT_CENTERED should be imported' ); +is( SDL_HAT_DOWN, 4, 'SDL_HAT_DOWN should be imported' ); +is( SDL_HAT_LEFT, 8, 'SDL_HAT_LEFT should be imported' ); +is( SDL_HAT_LEFTDOWN, 12, 'SDL_HAT_LEFTDOWN should be imported' ); +is( SDL_HAT_LEFTUP, 9, 'SDL_HAT_LEFTUP should be imported' ); +is( SDL_HAT_RIGHT, 2, 'SDL_HAT_RIGHT should be imported' ); +is( SDL_HAT_RIGHTDOWN, 6, 'SDL_HAT_RIGHTDOWN should be imported' ); +is( SDL_HAT_RIGHTUP, 3, 'SDL_HAT_RIGHTUP should be imported' ); +is( SDL_HAT_UP, 1, 'SDL_HAT_UP should be imported' ); + +is( SDL_HWACCEL, 256, 'SDL_HWACCEL should be imported' ); +is( SDL_HWPALETTE, 536870912, 'SDL_HWPALETTE should be imported' ); +is( SDL_HWSURFACE, 1, 'SDL_HWSURFACE should be imported' ); + +is( SDL_IGNORE, 0, 'SDL_IGNORE should be imported' ); + +is( SDL_INIT_AUDIO, 16, 'SDL_INIT_AUDIO should be imported' ); +is( SDL_INIT_CDROM, 256, 'SDL_INIT_CDROM should be imported' ); +is( SDL_INIT_EVERYTHING, 65535, 'SDL_INIT_EVERYTHING should be imported' ); +is( SDL_INIT_JOYSTICK, 512, 'SDL_INIT_JOYSTICK should be imported' ); +is( SDL_INIT_NOPARACHUTE, 1048576, 'SDL_INIT_NOPARACHUTE should be imported' ); +is( SDL_INIT_TIMER, 1, 'SDL_INIT_TIMER should be imported' ); +is( SDL_INIT_VIDEO, 32, 'SDL_INIT_VIDEO should be imported' ); + +is( SDL_IYUV_OVERLAY, 1448433993, 'SDL_IYUV_OVERLAY should be imported' ); + +is( SDL_JOYAXISMOTION, 7, 'SDL_JOYAXISMOTION should be imported' ); +is( SDL_JOYBALLMOTION, 8, 'SDL_JOYBALLMOTION should be imported' ); +is( SDL_JOYBUTTONDOWN, 10, 'SDL_JOYBUTTONDOWN should be imported' ); +is( SDL_JOYBUTTONUP, 11, 'SDL_JOYBUTTONUP should be imported' ); +is( SDL_JOYHATMOTION, 9, 'SDL_JOYHATMOTION should be imported' ); + +is( SDL_KEYDOWN, 2, 'SDL_KEYDOWN should be imported' ); +is( SDL_KEYUP, 3, 'SDL_KEYUP should be imported' ); + +is( SDL_MIX_MAXVOLUME, 128, 'SDL_MIX_MAXVOLUME should be imported' ); + +is( SDL_MOUSEBUTTONDOWN, 5, 'SDL_MOUSEBUTTONDOWN should be imported' ); +is( SDL_MOUSEBUTTONUP, 6, 'SDL_MOUSEBUTTONUP should be imported' ); +is( SDL_MOUSEMOTION, 4, 'SDL_MOUSEMOTION should be imported' ); + +is( SDL_OPENGL, 2, 'SDL_OPENGL should be imported' ); +is( SDL_OPENGLBLIT, 10, 'SDL_OPENGLBLIT should be imported' ); + +is( SDL_PREALLOC, 16777216, 'SDL_PREALLOC should be imported' ); +is( SDL_PRESSED, 1, 'SDL_PRESSED should be imported' ); +is( SDL_QUERY, -1, 'SDL_QUERY should be imported' ); +is( SDL_QUIT, 12, 'SDL_QUIT should be imported' ); +is( SDL_RELEASED, 0, 'SDL_RELEASED should be imported' ); +is( SDL_RESIZABLE, 16, 'SDL_RESIZABLE should be imported' ); +is( SDL_RLEACCEL, 16384, 'SDL_RLEACCEL should be imported' ); +is( SDL_RLEACCELOK, 8192, 'SDL_RLEACCELOK should be imported' ); +is( SDL_SRCALPHA, 65536, 'SDL_SRCALPHA should be imported' ); +is( SDL_SRCCOLORKEY, 4096, 'SDL_SRCCOLORKEY should be imported' ); +is( SDL_SWSURFACE, 0, 'SDL_SWSURFACE should be imported' ); +is( SDL_SYSWMEVENT, 13, 'SDL_SYSWMEVENT should be imported' ); +is( SDL_UYVY_OVERLAY, 1498831189, 'SDL_UYVY_OVERLAY should be imported' ); +is( SDL_VIDEOEXPOSE, 17, 'SDL_VIDEOEXPOSE should be imported' ); +is( SDL_VIDEORESIZE, 16, 'SDL_VIDEORESIZE should be imported' ); +is( SDL_YUY2_OVERLAY, 844715353, 'SDL_YUY2_OVERLAY should be imported' ); +is( SDL_YV12_OVERLAY, 842094169, 'SDL_YV12_OVERLAY should be imported' ); +is( SDL_YVYU_OVERLAY, 1431918169, 'SDL_YVYU_OVERLAY should be imported' ); + +is( SMPEG_ERROR, -1, 'SMPEG_ERROR should be imported' ); +is( SMPEG_PLAYING, 1, 'SMPEG_PLAYING should be imported' ); +is( SMPEG_STOPPED, 0, 'SMPEG_STOPPED should be imported' ); + +is( TEXT_BLENDED, 4, 'TEXT_BLENDED should be imported' ); +is( TEXT_SHADED, 2, 'TEXT_SHADED should be imported' ); +is( TEXT_SOLID, 1, 'TEXT_SOLID should be imported' ); + +is( TTF_STYLE_BOLD, 1, 'TTF_STYLE_BOLD should be imported' ); +is( TTF_STYLE_ITALIC, 2, 'TTF_STYLE_ITALIC should be imported' ); +is( TTF_STYLE_NORMAL, 0, 'TTF_STYLE_NORMAL should be imported' ); +is( TTF_STYLE_UNDERLINE, 4, 'TTF_STYLE_UNDERLINE should be imported' ); + +is( UNICODE_BLENDED, 256, 'UNICODE_BLENDED should be imported' ); +is( UNICODE_SHADED, 128, 'UNICODE_SHADED should be imported' ); +is( UNICODE_SOLID, 64, 'UNICODE_SOLID should be imported' ); + +is( UTF8_BLENDED, 32, 'UTF8_BLENDED should be imported' ); +is( UTF8_SHADED, 16, 'UTF8_SHADED should be imported' ); +is( UTF8_SOLID, 8, 'UTF8_SOLID should be imported' ); + +is( SDL_SVG_FLAG_DIRECT, 0, 'SDL_SVG_FLAG_DIRECT should be imported' ); +is( SDL_SVG_FLAG_COMPOSITE, 1, 'SDL_SVG_FLAG_COMPOSITE should be imported' ); + +is( SDL_SAMPLEFLAG_NONE, 0, 'SDL_SAMPLEFLAG_NONE should be imported' ); +is( SDL_SAMPLEFLAG_CANSEEK, 1, 'SDL_SAMPLEFLAG_CANSEEK should be imported' ); +is( SDL_SAMPLEFLAG_EOF, 1 << 29, 'SDL_SAMPLEFLAG_EOF should be imported' ); +is( SDL_SAMPLEFLAG_ERROR, 1 << 30, 'SDL_SAMPLEFLAG_ERROR should be imported' ); +is( SDL_SAMPLEFLAG_EAGAIN, 1 << 31, 'SDL_SAMPLEFLAG_EAGAIN should be imported' ); +