Skip to content

Commit 940cdaa

Browse files
committed
Use "omit" instead of "return"
1 parent 662bbb3 commit 940cdaa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/reline/test_key_actor_emacs.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2141,7 +2141,7 @@ def test_ed_search_next_history_with_empty
21412141

21422142
# Unicode emoji test
21432143
def test_ed_insert_for_include_zwj_emoji
2144-
return if Reline::IOGate.encoding != Encoding::UTF_8
2144+
omit "This test is for UTF-8 but the locale is #{Reline::IOGate.encoding}" if Reline::IOGate.encoding != Encoding::UTF_8
21452145
# U+1F468 U+200D U+1F469 U+200D U+1F467 U+200D U+1F466 is family: man, woman, girl, boy "👨‍👩‍👧‍👦"
21462146
input_keys("\u{1F468}") # U+1F468 is man "👨"
21472147
assert_line("\u{1F468}")
@@ -2187,7 +2187,7 @@ def test_ed_insert_for_include_zwj_emoji
21872187
end
21882188

21892189
def test_ed_insert_for_include_valiation_selector
2190-
return if Reline::IOGate.encoding != Encoding::UTF_8
2190+
omit "This test is for UTF-8 but the locale is #{Reline::IOGate.encoding}" if Reline::IOGate.encoding != Encoding::UTF_8
21912191
# U+0030 U+FE00 is DIGIT ZERO + VARIATION SELECTOR-1 "0︀"
21922192
input_keys("\u0030") # U+0030 is DIGIT ZERO
21932193
assert_line("\u0030")

0 commit comments

Comments
 (0)