Skip to content

Commit

Permalink
Update tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Aermoss committed Jan 28, 2025
1 parent 81c3733 commit 8acfce8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions tests/TEST_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ def TEST_SDL_Init():

@TEST_RegisterFunction
def TEST_SDL_CreateWindow():
if sdl3.SDL_SYSTEM in ["Linux"]: return
assert sdl3.SDL_Init(sdl3.SDL_INIT_VIDEO), sdl3.SDL_GetError().decode()
assert (window := sdl3.SDL_CreateWindow("Test".encode(), 1600, 900, sdl3.SDL_WINDOW_RESIZABLE)), sdl3.SDL_GetError().decode()
assert (error := sdl3.SDL_GetError()) == "".encode(), error.decode()
Expand Down
2 changes: 1 addition & 1 deletion tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ def TEST_RunAllTests():
print("\33[31m", f"Test '{func.__name__}' failed: {error}", "\33[0m", sep = "", flush = True)
failed += 1

print("\33[35m", f"{successful} tests passed, {failed} tests failed.", "\33[0m", sep = "", flush = True)
print("\33[35m", f"{successful} test(s) passed, {failed} test(s) failed.", "\33[0m", sep = "", flush = True)
if failed: os._exit(-1)

0 comments on commit 8acfce8

Please sign in to comment.