Skip to content

Commit

Permalink
remove inline comments
Browse files Browse the repository at this point in the history
  • Loading branch information
monkeyWzr authored May 15, 2024
1 parent 06a8911 commit 2438347
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions test/reline/test_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,8 @@ def test_unmatched_endif
def test_if_with_mode
@config.read_lines(<<~LINES.lines)
$if mode=emacs
"\C-e": history-search-backward # comment
# comment
"\C-e": history-search-backward
$else
"\C-f": history-search-forward
$endif
Expand All @@ -292,7 +293,8 @@ def test_if_with_mode
def test_else
@config.read_lines(<<~LINES.lines)
$if mode=vi
"\C-e": history-search-backward # comment
# comment
"\C-e": history-search-backward
$else
"\C-f": history-search-forward
$endif
Expand All @@ -308,7 +310,8 @@ def test_if_with_invalid_mode
$if mode=vim
"\C-e": history-search-backward
$else
"\C-f": history-search-forward # comment
# comment
"\C-f": history-search-forward
$endif
LINES

Expand Down Expand Up @@ -406,7 +409,8 @@ def test_additional_key_bindings_for_auxiliary_emacs_keymaps
"ef": "EF"
set keymap emacs-meta
"gh": "GH"
set editing-mode emacs # keymap changes to be emacs
# keymap changes to be emacs
set editing-mode emacs
LINES

expected = {
Expand Down Expand Up @@ -543,4 +547,3 @@ def test_relative_xdg_config_home
ENV['HOME'] = home_backup
end
end

0 comments on commit 2438347

Please sign in to comment.