From 39d9db0589bbb2cd125466c1bd6a9ef59bc26ca9 Mon Sep 17 00:00:00 2001 From: Thomas Jollans Date: Thu, 12 Dec 2024 21:49:18 +0100 Subject: [PATCH] More tests for whitespace in multi-line strings --- .../multiline_string_whitespace_only.kdl | 2 +- .../input/multiline_string_whitespace_only.kdl | 14 ++++++++++---- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/tests/test_cases/expected_kdl/multiline_string_whitespace_only.kdl b/tests/test_cases/expected_kdl/multiline_string_whitespace_only.kdl index 3f50068..4d04294 100644 --- a/tests/test_cases/expected_kdl/multiline_string_whitespace_only.kdl +++ b/tests/test_cases/expected_kdl/multiline_string_whitespace_only.kdl @@ -1 +1 @@ -node "" "" "\n" +node "" "" "" "\n\n " "\n" diff --git a/tests/test_cases/input/multiline_string_whitespace_only.kdl b/tests/test_cases/input/multiline_string_whitespace_only.kdl index 72039c2..d3bd045 100644 --- a/tests/test_cases/input/multiline_string_whitespace_only.kdl +++ b/tests/test_cases/input/multiline_string_whitespace_only.kdl @@ -1,12 +1,18 @@ // This file deliberately contains unusual whitespace -// the first two strings are empty +// The first two strings are empty node """   """ """    \    -   """ \ - \ // The next string contains only whitespace +   """ """ +    + """\ + \ // The next two strings contains only whitespace """    + +    \s +    """ #""" +     -    """ + """#