From 90be465a9ab017ba3a1e8d290139e6fda98ea9f8 Mon Sep 17 00:00:00 2001 From: Ariel A <24759293+aarant@users.noreply.github.com> Date: Mon, 8 Jan 2024 21:04:25 -0500 Subject: [PATCH] Ignored case-fixing characters in tests' `TryMessage` --- test/test_runner_battle.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/test_runner_battle.c b/test/test_runner_battle.c index caccdb2042..8177e02b0a 100644 --- a/test/test_runner_battle.c +++ b/test/test_runner_battle.c @@ -12,6 +12,7 @@ #include "random.h" #include "test/battle.h" #include "window.h" +#include "text.h" #include "constants/trainers.h" #if defined(__INTELLISENSE__) @@ -1185,6 +1186,13 @@ static s32 TryMessage(s32 i, s32 n, const u8 *string) if (string[j] == CHAR_PROMPT_CLEAR) j++; } + #if DECAP_ENABLED + // ignore case-fixing characters in string + if (string[j] == CHAR_FIXED_CASE || string[j] == CHAR_UNFIX_CASE) { + k--; // will be incremented in 'continue' + continue; + } + #endif if (string[j] != event->pattern[k]) { break;