diff --git a/tests/bind.expect b/tests/bind.expect index 3b9a3290c..5ffc364d6 100644 --- a/tests/bind.expect +++ b/tests/bind.expect @@ -191,6 +191,19 @@ expect_prompt -re {\r\nTENT\r\n} { puts stderr "Couldn't find expected output 'TENT'" } +# Test '~' (togglecase-char) +send "\033" +sleep 0.300 +send "ccecho some TExT\033" +sleep 0.300 +send "hh~~bbve~\r" +expect_prompt -re {\r\nSOME TeXT\r\n} { +} -nounmatched -re {\r\nfail} { + puts stderr "~-binding fail" +} unmatched { + puts stderr "Couldn't find expected output 'SOME TeXT'" +} + # Now test that exactly the expected bind modes are defined send "bind --list-modes\r" expect_prompt -re {\r\ndefault\r\ninsert\r\npaste\r\nreplace\r\nreplace_one\r\nvisual\r\n} {