From 6354ef4cee351472a8ca47314bcb406e61811c02 Mon Sep 17 00:00:00 2001 From: Jake Stewart Date: Sun, 3 Sep 2023 16:37:59 +0800 Subject: [PATCH] add tests for python config parser --- kitty_tests/options.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/kitty_tests/options.py b/kitty_tests/options.py index 3d535939c..eaff7d9b3 100644 --- a/kitty_tests/options.py +++ b/kitty_tests/options.py @@ -124,3 +124,16 @@ def ac(which=0): opts = p('macos_hide_titlebar y' if is_macos else 'x11_hide_window_decorations y') self.assertTrue(opts.hide_window_decorations) self.ae(len(self.error_messages), 1) + + # line breaks + opts = p(" font", + " \t \t \\_size", + " \\ 12", + "\\.35", + "col", + "\\o", + "\t \t\\r", + "\\25", + " \\ blue") + self.ae(opts.font_size, 12.35) + self.ae(opts.color25, Color(0, 0, 255))