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

[ruby/reline] Use "omit" instead of "return"

https://github.com/ruby/reline/commit/940cdaa301
This commit is contained in:
aycabta 2021-07-07 20:23:39 +09:00
parent b0633ee4b3
commit 5313d234e0

View file

@ -2141,7 +2141,7 @@ class Reline::KeyActor::Emacs::Test < Reline::TestCase
# Unicode emoji test
def test_ed_insert_for_include_zwj_emoji
return if Reline::IOGate.encoding != Encoding::UTF_8
omit "This test is for UTF-8 but the locale is #{Reline::IOGate.encoding}" if Reline::IOGate.encoding != Encoding::UTF_8
# U+1F468 U+200D U+1F469 U+200D U+1F467 U+200D U+1F466 is family: man, woman, girl, boy "👨‍👩‍👧‍👦"
input_keys("\u{1F468}") # U+1F468 is man "👨"
assert_line("\u{1F468}")
@ -2187,7 +2187,7 @@ class Reline::KeyActor::Emacs::Test < Reline::TestCase
end
def test_ed_insert_for_include_valiation_selector
return if Reline::IOGate.encoding != Encoding::UTF_8
omit "This test is for UTF-8 but the locale is #{Reline::IOGate.encoding}" if Reline::IOGate.encoding != Encoding::UTF_8
# U+0030 U+FE00 is DIGIT ZERO + VARIATION SELECTOR-1 "0"
input_keys("\u0030") # U+0030 is DIGIT ZERO
assert_line("\u0030")