Skip to content

Commit

Permalink
adopt kb test to new KeyCode/UnicodeKey behavior, try 2
Browse files Browse the repository at this point in the history
  • Loading branch information
unxed committed Mar 31, 2023
1 parent 5ddb103 commit 4cb2c8e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/events/keyboard.cpp
Expand Up @@ -163,9 +163,10 @@ void TestEvent(int line, const wxKeyEvent& ev, const KeyDesc& desc)

if ( desc.m_keycode < WXK_START )
{
// For Latin-1 our key code is the same as uppercase version of Unicode character value.
// For Latin-1 uppercase version of our key code
// is the same as uppercase version of Unicode character value.
CPPUNIT_ASSERT_EQUAL_MESSAGE( "wrong Unicode key in " + msg,
(char)desc.m_keycode,
(char)wxToupper(desc.m_keycode),
(char)wxToupper(ev.GetUnicodeKey()) );
}
else // Special key
Expand Down

0 comments on commit 4cb2c8e

Please sign in to comment.