Skip to content

Commit

Permalink
Add a test for em_capitol_case of Reline
Browse files Browse the repository at this point in the history
  • Loading branch information
aycabta committed May 12, 2019
1 parent 3211a0a commit b1767e5
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions test/reline/test_key_actor_emacs.rb
Expand Up @@ -943,6 +943,30 @@ def test_em_capitol_case
assert_line('Abc Def{Bbb}Ccc')
end

def test_em_capitol_case
input_keys('abc def{bbb}ccc')
input_keys("\C-a\M-c", false)
assert_byte_pointer_size('Abc')
assert_cursor(3)
assert_cursor_max(15)
assert_line('Abc def{bbb}ccc')
input_keys("\M-c", false)
assert_byte_pointer_size('Abc Def')
assert_cursor(7)
assert_cursor_max(15)
assert_line('Abc Def{bbb}ccc')
input_keys("\M-c", false)
assert_byte_pointer_size('Abc Def{Bbb')
assert_cursor(11)
assert_cursor_max(15)
assert_line('Abc Def{Bbb}ccc')
input_keys("\M-c", false)
assert_byte_pointer_size('Abc Def{Bbb}Ccc')
assert_cursor(15)
assert_cursor_max(15)
assert_line('Abc Def{Bbb}Ccc')
end

def test_em_capitol_case_with_complex_example
input_keys('{}#* AaA!!!cCc ')
input_keys("\C-a\M-c", false)
Expand Down

0 comments on commit b1767e5

Please sign in to comment.