summaryrefslogtreecommitdiffstats
path: root/tests/data/toml-lang-compliance/valid/string
diff options
context:
space:
mode:
Diffstat (limited to 'tests/data/toml-lang-compliance/valid/string')
-rw-r--r--tests/data/toml-lang-compliance/valid/string/spec-string-basic-multiline-1.toml3
-rw-r--r--tests/data/toml-lang-compliance/valid/string/spec-string-basic-multiline-2.toml6
-rw-r--r--tests/data/toml-lang-compliance/valid/string/spec-string-basic-multiline-3.toml5
-rw-r--r--tests/data/toml-lang-compliance/valid/string/spec-string-basic-multiline-4.toml2
-rw-r--r--tests/data/toml-lang-compliance/valid/string/spec-string-basic-multiline-5.toml5
-rw-r--r--tests/data/toml-lang-compliance/valid/string/spec-string-basic-multiline-6.toml1
-rw-r--r--tests/data/toml-lang-compliance/valid/string/spec-string-basic-multiline-7.toml1
-rw-r--r--tests/data/toml-lang-compliance/valid/string/spec-string-basic-multiline-8.toml1
-rw-r--r--tests/data/toml-lang-compliance/valid/string/spec-string-basic-multiline-9.toml1
-rw-r--r--tests/data/toml-lang-compliance/valid/string/spec-string-basic-tab-multiline.toml1
-rw-r--r--tests/data/toml-lang-compliance/valid/string/spec-string-basic-tab.toml1
-rw-r--r--tests/data/toml-lang-compliance/valid/string/spec-string-basic.toml1
-rw-r--r--tests/data/toml-lang-compliance/valid/string/spec-string-escape-1.toml1
-rw-r--r--tests/data/toml-lang-compliance/valid/string/spec-string-escape-2.toml1
-rw-r--r--tests/data/toml-lang-compliance/valid/string/spec-string-escape-3.toml1
-rw-r--r--tests/data/toml-lang-compliance/valid/string/spec-string-escape-4.toml1
-rw-r--r--tests/data/toml-lang-compliance/valid/string/spec-string-escape-5.toml1
-rw-r--r--tests/data/toml-lang-compliance/valid/string/spec-string-escape-6.toml1
-rw-r--r--tests/data/toml-lang-compliance/valid/string/spec-string-escape-7.toml1
-rw-r--r--tests/data/toml-lang-compliance/valid/string/spec-string-escape-8.toml1
-rw-r--r--tests/data/toml-lang-compliance/valid/string/spec-string-escape-9.toml1
-rw-r--r--tests/data/toml-lang-compliance/valid/string/spec-string-literal-1.toml1
-rw-r--r--tests/data/toml-lang-compliance/valid/string/spec-string-literal-2.toml1
-rw-r--r--tests/data/toml-lang-compliance/valid/string/spec-string-literal-3.toml1
-rw-r--r--tests/data/toml-lang-compliance/valid/string/spec-string-literal-4.toml1
-rw-r--r--tests/data/toml-lang-compliance/valid/string/spec-string-literal-multiline-1.toml1
-rw-r--r--tests/data/toml-lang-compliance/valid/string/spec-string-literal-multiline-2.toml6
-rw-r--r--tests/data/toml-lang-compliance/valid/string/spec-string-literal-multiline-3.toml1
-rw-r--r--tests/data/toml-lang-compliance/valid/string/spec-string-literal-multiline-4.toml1
29 files changed, 50 insertions, 0 deletions
diff --git a/tests/data/toml-lang-compliance/valid/string/spec-string-basic-multiline-1.toml b/tests/data/toml-lang-compliance/valid/string/spec-string-basic-multiline-1.toml
new file mode 100644
index 0000000..337ad08
--- /dev/null
+++ b/tests/data/toml-lang-compliance/valid/string/spec-string-basic-multiline-1.toml
@@ -0,0 +1,3 @@
+str1 = """
+Roses are red
+Violets are blue"""
diff --git a/tests/data/toml-lang-compliance/valid/string/spec-string-basic-multiline-2.toml b/tests/data/toml-lang-compliance/valid/string/spec-string-basic-multiline-2.toml
new file mode 100644
index 0000000..19c3210
--- /dev/null
+++ b/tests/data/toml-lang-compliance/valid/string/spec-string-basic-multiline-2.toml
@@ -0,0 +1,6 @@
+str = """
+The quick brown \
+
+
+ fox jumps over \
+ the lazy dog."""
diff --git a/tests/data/toml-lang-compliance/valid/string/spec-string-basic-multiline-3.toml b/tests/data/toml-lang-compliance/valid/string/spec-string-basic-multiline-3.toml
new file mode 100644
index 0000000..dcbdc14
--- /dev/null
+++ b/tests/data/toml-lang-compliance/valid/string/spec-string-basic-multiline-3.toml
@@ -0,0 +1,5 @@
+str = """\
+ The quick brown \
+ fox jumps over \
+ the lazy dog.\
+ """
diff --git a/tests/data/toml-lang-compliance/valid/string/spec-string-basic-multiline-4.toml b/tests/data/toml-lang-compliance/valid/string/spec-string-basic-multiline-4.toml
new file mode 100644
index 0000000..03ceb5a
--- /dev/null
+++ b/tests/data/toml-lang-compliance/valid/string/spec-string-basic-multiline-4.toml
@@ -0,0 +1,2 @@
+a = """abc\
+def"""
diff --git a/tests/data/toml-lang-compliance/valid/string/spec-string-basic-multiline-5.toml b/tests/data/toml-lang-compliance/valid/string/spec-string-basic-multiline-5.toml
new file mode 100644
index 0000000..845df2e
--- /dev/null
+++ b/tests/data/toml-lang-compliance/valid/string/spec-string-basic-multiline-5.toml
@@ -0,0 +1,5 @@
+ml-escaped-nl = """
+ foo \
+ bar \\
+ baz \\\
+ quux"""
diff --git a/tests/data/toml-lang-compliance/valid/string/spec-string-basic-multiline-6.toml b/tests/data/toml-lang-compliance/valid/string/spec-string-basic-multiline-6.toml
new file mode 100644
index 0000000..2552392
--- /dev/null
+++ b/tests/data/toml-lang-compliance/valid/string/spec-string-basic-multiline-6.toml
@@ -0,0 +1 @@
+str4 = """Here are two quotation marks: "". Simple enough."""
diff --git a/tests/data/toml-lang-compliance/valid/string/spec-string-basic-multiline-7.toml b/tests/data/toml-lang-compliance/valid/string/spec-string-basic-multiline-7.toml
new file mode 100644
index 0000000..4aa57e6
--- /dev/null
+++ b/tests/data/toml-lang-compliance/valid/string/spec-string-basic-multiline-7.toml
@@ -0,0 +1 @@
+str5 = """Here are three quotation marks: ""\"."""
diff --git a/tests/data/toml-lang-compliance/valid/string/spec-string-basic-multiline-8.toml b/tests/data/toml-lang-compliance/valid/string/spec-string-basic-multiline-8.toml
new file mode 100644
index 0000000..808119f
--- /dev/null
+++ b/tests/data/toml-lang-compliance/valid/string/spec-string-basic-multiline-8.toml
@@ -0,0 +1 @@
+str6 = """Here are fifteen quotation marks: ""\"""\"""\"""\"""\"."""
diff --git a/tests/data/toml-lang-compliance/valid/string/spec-string-basic-multiline-9.toml b/tests/data/toml-lang-compliance/valid/string/spec-string-basic-multiline-9.toml
new file mode 100644
index 0000000..693b410
--- /dev/null
+++ b/tests/data/toml-lang-compliance/valid/string/spec-string-basic-multiline-9.toml
@@ -0,0 +1 @@
+str7 = """"This," she said, "is just a pointless statement.""""
diff --git a/tests/data/toml-lang-compliance/valid/string/spec-string-basic-tab-multiline.toml b/tests/data/toml-lang-compliance/valid/string/spec-string-basic-tab-multiline.toml
new file mode 100644
index 0000000..3a21209
--- /dev/null
+++ b/tests/data/toml-lang-compliance/valid/string/spec-string-basic-tab-multiline.toml
@@ -0,0 +1 @@
+str = """This is a tab"""
diff --git a/tests/data/toml-lang-compliance/valid/string/spec-string-basic-tab.toml b/tests/data/toml-lang-compliance/valid/string/spec-string-basic-tab.toml
new file mode 100644
index 0000000..4aa0752
--- /dev/null
+++ b/tests/data/toml-lang-compliance/valid/string/spec-string-basic-tab.toml
@@ -0,0 +1 @@
+str = "This is a tab"
diff --git a/tests/data/toml-lang-compliance/valid/string/spec-string-basic.toml b/tests/data/toml-lang-compliance/valid/string/spec-string-basic.toml
new file mode 100644
index 0000000..b611549
--- /dev/null
+++ b/tests/data/toml-lang-compliance/valid/string/spec-string-basic.toml
@@ -0,0 +1 @@
+str = "I'm a string. \"You can quote me\". Name\tJos\u00E9\nLocation\tSF."
diff --git a/tests/data/toml-lang-compliance/valid/string/spec-string-escape-1.toml b/tests/data/toml-lang-compliance/valid/string/spec-string-escape-1.toml
new file mode 100644
index 0000000..f0398c4
--- /dev/null
+++ b/tests/data/toml-lang-compliance/valid/string/spec-string-escape-1.toml
@@ -0,0 +1 @@
+a = "\b"
diff --git a/tests/data/toml-lang-compliance/valid/string/spec-string-escape-2.toml b/tests/data/toml-lang-compliance/valid/string/spec-string-escape-2.toml
new file mode 100644
index 0000000..1738783
--- /dev/null
+++ b/tests/data/toml-lang-compliance/valid/string/spec-string-escape-2.toml
@@ -0,0 +1 @@
+a = "\t"
diff --git a/tests/data/toml-lang-compliance/valid/string/spec-string-escape-3.toml b/tests/data/toml-lang-compliance/valid/string/spec-string-escape-3.toml
new file mode 100644
index 0000000..6e3e62c
--- /dev/null
+++ b/tests/data/toml-lang-compliance/valid/string/spec-string-escape-3.toml
@@ -0,0 +1 @@
+a = "\n"
diff --git a/tests/data/toml-lang-compliance/valid/string/spec-string-escape-4.toml b/tests/data/toml-lang-compliance/valid/string/spec-string-escape-4.toml
new file mode 100644
index 0000000..4588c90
--- /dev/null
+++ b/tests/data/toml-lang-compliance/valid/string/spec-string-escape-4.toml
@@ -0,0 +1 @@
+a = "\f"
diff --git a/tests/data/toml-lang-compliance/valid/string/spec-string-escape-5.toml b/tests/data/toml-lang-compliance/valid/string/spec-string-escape-5.toml
new file mode 100644
index 0000000..656628a
--- /dev/null
+++ b/tests/data/toml-lang-compliance/valid/string/spec-string-escape-5.toml
@@ -0,0 +1 @@
+a = "\r"
diff --git a/tests/data/toml-lang-compliance/valid/string/spec-string-escape-6.toml b/tests/data/toml-lang-compliance/valid/string/spec-string-escape-6.toml
new file mode 100644
index 0000000..6b10d70
--- /dev/null
+++ b/tests/data/toml-lang-compliance/valid/string/spec-string-escape-6.toml
@@ -0,0 +1 @@
+a = "\""
diff --git a/tests/data/toml-lang-compliance/valid/string/spec-string-escape-7.toml b/tests/data/toml-lang-compliance/valid/string/spec-string-escape-7.toml
new file mode 100644
index 0000000..45822af
--- /dev/null
+++ b/tests/data/toml-lang-compliance/valid/string/spec-string-escape-7.toml
@@ -0,0 +1 @@
+a = "\\"
diff --git a/tests/data/toml-lang-compliance/valid/string/spec-string-escape-8.toml b/tests/data/toml-lang-compliance/valid/string/spec-string-escape-8.toml
new file mode 100644
index 0000000..098e7df
--- /dev/null
+++ b/tests/data/toml-lang-compliance/valid/string/spec-string-escape-8.toml
@@ -0,0 +1 @@
+a = "\u0000"
diff --git a/tests/data/toml-lang-compliance/valid/string/spec-string-escape-9.toml b/tests/data/toml-lang-compliance/valid/string/spec-string-escape-9.toml
new file mode 100644
index 0000000..f9d3db5
--- /dev/null
+++ b/tests/data/toml-lang-compliance/valid/string/spec-string-escape-9.toml
@@ -0,0 +1 @@
+a = "\U00000000"
diff --git a/tests/data/toml-lang-compliance/valid/string/spec-string-literal-1.toml b/tests/data/toml-lang-compliance/valid/string/spec-string-literal-1.toml
new file mode 100644
index 0000000..6f2304c
--- /dev/null
+++ b/tests/data/toml-lang-compliance/valid/string/spec-string-literal-1.toml
@@ -0,0 +1 @@
+winpath = 'C:\Users\nodejs\templates'
diff --git a/tests/data/toml-lang-compliance/valid/string/spec-string-literal-2.toml b/tests/data/toml-lang-compliance/valid/string/spec-string-literal-2.toml
new file mode 100644
index 0000000..21ab5f8
--- /dev/null
+++ b/tests/data/toml-lang-compliance/valid/string/spec-string-literal-2.toml
@@ -0,0 +1 @@
+winpath2 = '\\ServerX\admin$\system32\'
diff --git a/tests/data/toml-lang-compliance/valid/string/spec-string-literal-3.toml b/tests/data/toml-lang-compliance/valid/string/spec-string-literal-3.toml
new file mode 100644
index 0000000..1ccdd68
--- /dev/null
+++ b/tests/data/toml-lang-compliance/valid/string/spec-string-literal-3.toml
@@ -0,0 +1 @@
+quoted = 'Tom "Dubs" Preston-Werner'
diff --git a/tests/data/toml-lang-compliance/valid/string/spec-string-literal-4.toml b/tests/data/toml-lang-compliance/valid/string/spec-string-literal-4.toml
new file mode 100644
index 0000000..baf2bd0
--- /dev/null
+++ b/tests/data/toml-lang-compliance/valid/string/spec-string-literal-4.toml
@@ -0,0 +1 @@
+regex = '<\i\c*\s*>'
diff --git a/tests/data/toml-lang-compliance/valid/string/spec-string-literal-multiline-1.toml b/tests/data/toml-lang-compliance/valid/string/spec-string-literal-multiline-1.toml
new file mode 100644
index 0000000..5d6cc0e
--- /dev/null
+++ b/tests/data/toml-lang-compliance/valid/string/spec-string-literal-multiline-1.toml
@@ -0,0 +1 @@
+regex2 = '''I [dw]on't need \d{2} apples'''
diff --git a/tests/data/toml-lang-compliance/valid/string/spec-string-literal-multiline-2.toml b/tests/data/toml-lang-compliance/valid/string/spec-string-literal-multiline-2.toml
new file mode 100644
index 0000000..0af7025
--- /dev/null
+++ b/tests/data/toml-lang-compliance/valid/string/spec-string-literal-multiline-2.toml
@@ -0,0 +1,6 @@
+lines = '''
+The first newline is
+trimmed in raw strings.
+ All other whitespace
+ is preserved.
+'''
diff --git a/tests/data/toml-lang-compliance/valid/string/spec-string-literal-multiline-3.toml b/tests/data/toml-lang-compliance/valid/string/spec-string-literal-multiline-3.toml
new file mode 100644
index 0000000..54f6470
--- /dev/null
+++ b/tests/data/toml-lang-compliance/valid/string/spec-string-literal-multiline-3.toml
@@ -0,0 +1 @@
+quot15 = '''Here are fifteen quotation marks: """""""""""""""'''
diff --git a/tests/data/toml-lang-compliance/valid/string/spec-string-literal-multiline-4.toml b/tests/data/toml-lang-compliance/valid/string/spec-string-literal-multiline-4.toml
new file mode 100644
index 0000000..d568f48
--- /dev/null
+++ b/tests/data/toml-lang-compliance/valid/string/spec-string-literal-multiline-4.toml
@@ -0,0 +1 @@
+str = ''''That,' she said, 'is still pointless.''''