diff options
author | Andre Brait <andrebrait@gmail.com> | 2023-09-25 04:48:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-25 12:48:55 +1000 |
commit | 960d6e0d7d8007ee826184967dc1edc5ab7b2755 (patch) | |
tree | e6c429f3086e0c51ad84e25e16c5c5fd1c937425 /quantum/debounce/tests/sym_defer_pk_tests.cpp | |
parent | dd94877ec6d2ee5c4cdb0e71287abd76585b0268 (diff) |
[Enhancement] Improvements for debounce test coverage + bug fixes for sym_defer_g and sym_eager_pr (#21667)
Co-authored-by: Nebuleon <2391500+Nebuleon@users.noreply.github.com>
Diffstat (limited to 'quantum/debounce/tests/sym_defer_pk_tests.cpp')
-rw-r--r-- | quantum/debounce/tests/sym_defer_pk_tests.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/quantum/debounce/tests/sym_defer_pk_tests.cpp b/quantum/debounce/tests/sym_defer_pk_tests.cpp index 7542c2dad4..864b7afcc4 100644 --- a/quantum/debounce/tests/sym_defer_pk_tests.cpp +++ b/quantum/debounce/tests/sym_defer_pk_tests.cpp @@ -238,3 +238,21 @@ TEST_F(DebounceTest, OneKeyDelayedScan4) { time_jumps_ = true; runEvents(); } + +TEST_F(DebounceTest, AsyncTickOneKeyShort1) { + addEvents({ + /* Time, Inputs, Outputs */ + {0, {{0, 1, DOWN}}, {}}, + + {5, {}, {{0, 1, DOWN}}}, + /* 0ms delay (fast scan rate) */ + {5, {{0, 1, UP}}, {}}, + + {10, {}, {{0, 1, UP}}}, + }); + /* + * Debounce implementations should never read the timer more than once per invocation + */ + async_time_jumps_ = DEBOUNCE; + runEvents(); +} |