Update terminal test to reflect new text insertion approach
This commit is contained in:
parent
ab037fe844
commit
13097ea110
1 changed files with 2 additions and 4 deletions
|
@ -305,17 +305,15 @@ mod test {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_multi_char_fallthrough() {
|
fn test_plain_inputs() {
|
||||||
let ks = Keystroke {
|
let ks = Keystroke {
|
||||||
ctrl: false,
|
ctrl: false,
|
||||||
alt: false,
|
alt: false,
|
||||||
shift: false,
|
shift: false,
|
||||||
cmd: false,
|
cmd: false,
|
||||||
|
|
||||||
key: "🖖🏻".to_string(), //2 char string
|
key: "🖖🏻".to_string(), //2 char string
|
||||||
};
|
};
|
||||||
|
assert_eq!(to_esc_str(&ks, &TermMode::NONE), None);
|
||||||
assert_eq!(to_esc_str(&ks, &TermMode::NONE), Some("🖖🏻".to_string()));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue