Skip to content

Commit

Permalink
Add a test for halfwidth kana width dakuten
Browse files Browse the repository at this point in the history
  • Loading branch information
aycabta committed Dec 23, 2021
1 parent fbcd5f5 commit 0895a0d
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/reline/test_key_actor_emacs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2306,6 +2306,22 @@ def test_ed_argument_digit_by_meta_num
assert_line('abcd')
end

def test_halfwidth_kana_width_dakuten
input_keys('ガギゲゴ')
assert_byte_pointer_size('ガギゲゴ')
assert_cursor(8)
assert_cursor_max(8)
input_keys("\C-b\C-b", false)
assert_byte_pointer_size('ガギ')
assert_cursor(4)
assert_cursor_max(8)
input_keys('グ', false)
assert_byte_pointer_size('ガギグ')
assert_cursor(6)
assert_cursor_max(10)
assert_line('ガギグゲゴ')
end

def test_input_unknown_char
input_keys('͸') # U+0378 (unassigned)
assert_line('͸')
Expand Down

0 comments on commit 0895a0d

Please sign in to comment.