summaryrefslogtreecommitdiff
path: root/std/encoding/testdata
diff options
context:
space:
mode:
Diffstat (limited to 'std/encoding/testdata')
-rw-r--r--std/encoding/testdata/arrays.toml4
-rw-r--r--std/encoding/testdata/comment.toml29
2 files changed, 31 insertions, 2 deletions
diff --git a/std/encoding/testdata/arrays.toml b/std/encoding/testdata/arrays.toml
index 5d5913d0c..f52509bf2 100644
--- a/std/encoding/testdata/arrays.toml
+++ b/std/encoding/testdata/arrays.toml
@@ -1,8 +1,8 @@
[arrays]
-data = [ ["gamma", "delta"], [1, 2] ]
+data = [ ["gamma", "delta"], [1, 2] ] # comment after an array caused issue #7072
# Line breaks are OK when inside arrays
hosts = [
"alpha",
"omega"
-]
+] # comment \ No newline at end of file
diff --git a/std/encoding/testdata/comment.toml b/std/encoding/testdata/comment.toml
new file mode 100644
index 000000000..6bc9be045
--- /dev/null
+++ b/std/encoding/testdata/comment.toml
@@ -0,0 +1,29 @@
+# This is a full-line comment
+str0 = 'value' # This is a comment at the end of a line
+str1 = "# This is not a comment" # but this is
+str2 = """ # this is not a comment!
+A multiline string with a #
+# this is also not a comment
+""" # this is definitely a comment
+
+str3 = '''
+"# not a comment"
+ # this is a real tab on purpose
+# not a comment
+''' # comment
+
+point0 = { x = 1, y = 2, str0 = "#not a comment", z = 3 } # comment
+point1 = { x = 7, y = 8, z = 9, str0 = "#not a comment"} # comment
+
+[deno] # this comment is fine
+features = ["#secure by default", "supports typescript # not a comment"] # Comment caused Issue #7072
+url = "https://deno.land/" # comment
+is_not_node = true # comment
+
+[toml] # Comment caused Issue #7072 (case 2)
+name = "Tom's Obvious, Minimal Language"
+objectives = [ # Comment
+ "easy to read", # Comment
+ "minimal config file",
+ "#not a comment" # comment
+] # comment