summaryrefslogtreecommitdiffstats
path: root/internal/toml-test/tests/valid/string/multiline.toml
diff options
context:
space:
mode:
Diffstat (limited to 'internal/toml-test/tests/valid/string/multiline.toml')
-rw-r--r--internal/toml-test/tests/valid/string/multiline.toml62
1 files changed, 62 insertions, 0 deletions
diff --git a/internal/toml-test/tests/valid/string/multiline.toml b/internal/toml-test/tests/valid/string/multiline.toml
new file mode 100644
index 0000000..4f2fd00
--- /dev/null
+++ b/internal/toml-test/tests/valid/string/multiline.toml
@@ -0,0 +1,62 @@
+# NOTE: this file includes some literal tab characters.
+
+multiline_empty_one = """"""
+
+# A newline immediately following the opening delimiter will be trimmed.
+multiline_empty_two = """
+"""
+
+# \ at the end of line trims newlines as well; note that last \ is followed by
+# two spaces, which are ignored.
+multiline_empty_three = """\
+ """
+multiline_empty_four = """\
+ \
+ \
+ """
+
+equivalent_one = "The quick brown fox jumps over the lazy dog."
+equivalent_two = """
+The quick brown \
+
+
+ fox jumps over \
+ the lazy dog."""
+
+equivalent_three = """\
+ The quick brown \
+ fox jumps over \
+ the lazy dog.\
+ """
+
+whitespace-after-bs = """\
+ The quick brown \
+ fox jumps over \
+ the lazy dog.\
+ """
+
+only-ignore-first = """
+Here are \
+ two
+lines of text.
+And \
+
+ another
+ two.
+"""
+
+no-space = """a\
+ b"""
+
+# Has tab character.
+keep-ws-before = """a \
+ b"""
+
+escape-bs-1 = """a \\
+b"""
+
+escape-bs-2 = """a \\\
+b"""
+
+escape-bs-3 = """a \\\\
+ b"""