Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(clafrica): updated the tests #58

Merged
merged 1 commit into from
Jul 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 11 additions & 28 deletions clafrica/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -225,45 +225,28 @@ mod tests {
thread::sleep(typing_speed_ms);

input!(KeyB KeyB KeyB Escape, typing_speed_ms);

input!(KeyU Backspace KeyU KeyU Backspace KeyU, typing_speed_ms);

input!(KeyC KeyC KeyC KeyE KeyD, typing_speed_ms);
input!(KeyU KeyU KeyA KeyF, typing_speed_ms);

input!(CapsLock, typing_speed_ms);
input!(Num3, typing_speed_ms);
input!(CapsLock, typing_speed_ms);

input!(KeyA KeyF KeyA KeyF, typing_speed_ms);
input!(KeyA KeyF KeyF, typing_speed_ms);

input!(CapsLock, typing_speed_ms);
input!(Num3, typing_speed_ms);
input!(CapsLock, typing_speed_ms);

input!(KeyU KeyU, typing_speed_ms);

input!(CapsLock, typing_speed_ms);
input!(Num3, typing_speed_ms);
input!(CapsLock, typing_speed_ms);

input!(
KeyC KeyC KeyC KeyE KeyD
KeyU KeyU
KeyA KeyF CapsLock Num3 CapsLock, typing_speed_ms);
input!(
KeyA KeyF KeyA KeyF
KeyA KeyF KeyF CapsLock Num3 CapsLock, typing_speed_ms);
input!(KeyU KeyU CapsLock Num3 CapsLock, typing_speed_ms);
output!(textfield, format!("{LIMIT}uçʉ̄ɑ̄ɑɑɑ̄ɑ̄ʉ̄"));

// To verify that the undo (backspace) work as expected
// We verify that the undo (backspace) works as expected
(0..12).for_each(|_| {
input!(Backspace, typing_speed_ms);
});

output!(textfield, LIMIT);

input!(Escape, typing_speed_ms);

// We verify that the pause/resume works as expected
input!(ControlLeft ControlLeft, typing_speed_ms);
input!(KeyA KeyF, typing_speed_ms);
input!(ControlLeft ControlLeft, typing_speed_ms);
input!(ControlLeft ControlRight, typing_speed_ms);
input!(KeyA KeyF, typing_speed_ms);

output!(textfield, format!("{LIMIT}afɑ"));

rstk::end_wish();
Expand Down