Add test for ~ (togglecase-char and togglecase-selection)

This commit is contained in:
Johannes Altmanninger 2020-04-19 05:42:59 +02:00
parent 9c6e81a838
commit 23427f3168

View File

@ -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} {