summaryrefslogtreecommitdiff
path: root/toml/testdata/string.toml
diff options
context:
space:
mode:
authorVincent LE GOFF <g_n_s@hotmail.fr>2019-03-28 17:31:15 +0100
committerRyan Dahl <ry@tinyclouds.org>2019-03-28 12:31:15 -0400
commit13aeee460a62dc6b49de3a7d5d6305ea51ab5e4c (patch)
tree0605d5e3e4b5e7536aa1ea2f7218fb73edded514 /toml/testdata/string.toml
parent8f0407efad81ea8c255daf03c0e19b6bae3b88b6 (diff)
Add TOML module (denoland/deno_std#300)
Original: https://github.com/denoland/deno_std/commit/fa1664e6ccaad9ad98a131f03fdd600c5fa24100
Diffstat (limited to 'toml/testdata/string.toml')
-rw-r--r--toml/testdata/string.toml30
1 files changed, 30 insertions, 0 deletions
diff --git a/toml/testdata/string.toml b/toml/testdata/string.toml
new file mode 100644
index 000000000..f811824eb
--- /dev/null
+++ b/toml/testdata/string.toml
@@ -0,0 +1,30 @@
+[strings]
+str0 = "deno"
+str1 = """
+Roses are not Deno
+ Violets are not Deno either"""
+# On a Unix system, the above multi-line string will most likely be the same as:
+str2 = "Roses are not Deno\nViolets are not Deno either"
+
+# On a Windows system, it will most likely be equivalent to:
+str3 = "Roses are not Deno\r\nViolets are not Deno either"
+str4 = "this is a \"quote\""
+
+str5 = """
+The quick brown \
+
+
+ fox jumps over \
+ the lazy dog."""
+
+str6 = """\
+ The quick brown \
+ fox jumps over \
+ the lazy dog.\
+ """
+lines = '''
+The first newline is
+trimmed in raw strings.
+ All other whitespace
+ is preserved.
+''' \ No newline at end of file