diff options
| author | Teddy Wing | 2018-09-30 21:01:56 +0200 |
|---|---|---|
| committer | Teddy Wing | 2018-09-30 21:01:56 +0200 |
| commit | 80b44c8ec956eb808b54fa2e0252db8600c42658 (patch) | |
| tree | 6f27e9386d27cae9259023969b698f726265e141 /src | |
| parent | dc606d756ceecf5ae8a52e607fd4a68727fd2529 (diff) | |
| download | dome-key-map-80b44c8ec956eb808b54fa2e0252db8600c42658.tar.bz2 | |
action_parses_map_with_less_than_escape(): Add `>` to end of test string
Add a '>' closing bracket to the end of the test string to make sure
that the '<' gets escaped even with a '>' following it.
Diffstat (limited to 'src')
| -rw-r--r-- | src/parser.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/parser.rs b/src/parser.rs index 0389cf5..a7a565b 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -754,7 +754,7 @@ mod tests { #[test] fn action_parses_map_with_less_than_escape() { - let text = "type\\<lt"; + let text = "type\\<lt>"; let expected = Action::Map(vec![ KeyboardKeyWithModifiers::new( @@ -785,6 +785,10 @@ mod tests { KeyboardKey::Character(Character::new('t')), None, ), + KeyboardKeyWithModifiers::new( + KeyboardKey::Character(Character::new('>')), + None, + ), ]); let result = action_map().easy_parse(text).map(|t| t.0); |
