keyboard stuff
1// Copyright 2023 QMK
2// SPDX-License-Identifier: GPL-2.0-or-later
3
4#include "keyboard_report_util.hpp"
5#include "keycode.h"
6#include "test_common.hpp"
7#include "test_keymap_key.hpp"
8
9using testing::_;
10
11class UnicodeBasic : public TestFixture {};
12
13TEST_F(UnicodeBasic, sends_unicode_sequence) {
14 TestDriver driver;
15
16 set_unicode_input_mode(UNICODE_MODE_LINUX);
17
18 auto key_uc = KeymapKey(0, 0, 0, UC(0x03A8)); // Ψ
19
20 set_keymap({key_uc});
21
22 EXPECT_UNICODE(driver, 0x03A8);
23 tap_key(key_uc);
24
25 VERIFY_AND_CLEAR(driver);
26}