summaryrefslogtreecommitdiff
path: root/test/YAMLParser/sloppy-indentation.test
diff options
context:
space:
mode:
Diffstat (limited to 'test/YAMLParser/sloppy-indentation.test')
-rw-r--r--test/YAMLParser/sloppy-indentation.test19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/YAMLParser/sloppy-indentation.test b/test/YAMLParser/sloppy-indentation.test
new file mode 100644
index 0000000000000..2b2b62b14afab
--- /dev/null
+++ b/test/YAMLParser/sloppy-indentation.test
@@ -0,0 +1,19 @@
+# RUN: yaml-bench -canonical %s
+
+---
+in the block context:
+ indentation should be kept: {
+ but in the flow context: [
+it may be violated]
+}
+---
+the parser does not require scalars
+to be indented with at least one space
+...
+---
+"the parser does not require scalars
+to be indented with at least one space"
+---
+foo:
+ bar: 'quoted scalars
+may not adhere indentation'