mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 07:47:09 +08:00
Add test for ~ (togglecase-char and togglecase-selection)
This commit is contained in:
parent
9c6e81a838
commit
23427f3168
@ -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} {
|
||||
|
Loading…
x
Reference in New Issue
Block a user