From d0559f8e27e9af9dbe449a476b77801ac21f3e5a Mon Sep 17 00:00:00 2001 From: pocari Date: Sun, 26 Jun 2022 00:39:10 +0900 Subject: [PATCH] add dialog configuration test --- test/reline/test_config.rb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/test/reline/test_config.rb b/test/reline/test_config.rb index 99d190d246..234eee11f7 100644 --- a/test/reline/test_config.rb +++ b/test/reline/test_config.rb @@ -408,4 +408,19 @@ def test_relative_xdg_config_home ENV['XDG_CONFIG_HOME'] = xdg_config_home_backup ENV['HOME'] = home_backup end + + def test_dialog_configurations + @config.read_lines(<<~LINES.lines) + set dialog-default-bg-color 1 + set dialog-pointer-bg-color 2 + set dialog-default-fg-color 3 + set dialog-pointer-fg-color 4 + LINES + + assert_equal 1, @config.dialog_default_bg_color + assert_equal 2, @config.dialog_pointer_bg_color + assert_equal 3, @config.dialog_default_fg_color + assert_equal 4, @config.dialog_pointer_fg_color + end end +