summaryrefslogtreecommitdiff
path: root/test/YAMLParser/construct-custom.test
diff options
context:
space:
mode:
Diffstat (limited to 'test/YAMLParser/construct-custom.test')
-rw-r--r--test/YAMLParser/construct-custom.test28
1 files changed, 28 insertions, 0 deletions
diff --git a/test/YAMLParser/construct-custom.test b/test/YAMLParser/construct-custom.test
new file mode 100644
index 0000000000000..cac95e0a5fb7c
--- /dev/null
+++ b/test/YAMLParser/construct-custom.test
@@ -0,0 +1,28 @@
+# RUN: yaml-bench -canonical %s
+
+---
+- !tag1
+ x: 1
+- !tag1
+ x: 1
+ 'y': 2
+ z: 3
+- !tag2
+ 10
+- !tag2
+ =: 10
+ 'y': 20
+ z: 30
+- !tag3
+ x: 1
+- !tag3
+ x: 1
+ 'y': 2
+ z: 3
+- !tag3
+ =: 1
+ 'y': 2
+ z: 3
+- !foo
+ my-parameter: foo
+ my-another-parameter: [1,2,3]