diff options
author | Ryan <fauxpark@gmail.com> | 2023-08-27 13:30:19 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-27 13:30:19 +1000 |
commit | 70e34e491c297231a3f987fd69760d38e79dbfa4 (patch) | |
tree | a3fe26ea27c9d020142f4c248fa0bab5d32c1f9c /tests/test_common | |
parent | 95681b8ff4a92aacd0249e124d34cf16e510175e (diff) |
Unicode, Unicodemap and UCIS refactor (#21659)
Diffstat (limited to 'tests/test_common')
-rw-r--r-- | tests/test_common/test_driver.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/test_common/test_driver.cpp b/tests/test_common/test_driver.cpp index f1c52cb7b6..0495da8205 100644 --- a/tests/test_common/test_driver.cpp +++ b/tests/test_common/test_driver.cpp @@ -60,7 +60,10 @@ void TestDriver::send_extra(report_extra_t* report) { namespace internal { void expect_unicode_code_point(TestDriver& driver, uint32_t code_point) { testing::InSequence seq; - EXPECT_REPORT(driver, (KC_LCTL, KC_LSFT, KC_U)); + EXPECT_REPORT(driver, (KC_LEFT_CTRL, KC_LEFT_SHIFT)); + EXPECT_REPORT(driver, (KC_LEFT_CTRL, KC_LEFT_SHIFT, KC_U)); + EXPECT_REPORT(driver, (KC_LEFT_CTRL, KC_LEFT_SHIFT)); + EXPECT_EMPTY_REPORT(driver); bool print_zero = false; for (int i = 7; i >= 0; --i) { @@ -71,10 +74,12 @@ void expect_unicode_code_point(TestDriver& driver, uint32_t code_point) { const uint8_t digit = (code_point >> (i * 4)) & 0xf; if (digit || print_zero) { EXPECT_REPORT(driver, (hex_digit_to_keycode(digit))); + EXPECT_EMPTY_REPORT(driver); print_zero = true; } } - EXPECT_REPORT(driver, (KC_SPC)); + EXPECT_REPORT(driver, (KC_SPACE)); + EXPECT_EMPTY_REPORT(driver); } } // namespace internal |