1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/reline] Add a test for halfwidth kana width dakuten

https://github.com/ruby/reline/commit/0895a0d4a1
This commit is contained in:
aycabta 2021-12-24 00:41:46 +09:00 committed by git
parent 4bb65ee4fe
commit 547c27e9e7

View file

@ -2306,6 +2306,22 @@ class Reline::KeyActor::Emacs::Test < Reline::TestCase
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('͸')