Skip to content

Commit

Permalink
testautomation keyboard: use space instead of a
Browse files Browse the repository at this point in the history
(cherry picked from commit 1ed1bc1)
  • Loading branch information
Lzard authored and sezero committed Nov 8, 2024
1 parent 761ea32 commit b308172
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/testautomation_keyboard.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,9 @@ int keyboard_getKeyFromScancode(void *arg)
SDL_Keycode result;

/* Case where input is valid */
result = SDL_GetKeyFromScancode(SDL_SCANCODE_A);
result = SDL_GetKeyFromScancode(SDL_SCANCODE_SPACE);
SDLTest_AssertPass("Call to SDL_GetKeyFromScancode(valid)");
SDLTest_AssertCheck(result == SDLK_a, "Verify result from call, expected: %i, got: %" SDL_PRIs32, SDLK_a, result);
SDLTest_AssertCheck(result == SDLK_SPACE, "Verify result from call, expected: %i, got: %" SDL_PRIs32, SDLK_SPACE, result);

/* Case where input is zero */
result = SDL_GetKeyFromScancode(0);
Expand Down

0 comments on commit b308172

Please sign in to comment.