summaryrefslogtreecommitdiff
path: root/t/load-passes.t
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2015-04-18 15:03:28 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2015-04-18 15:03:28 +0000
commit2fe5b8de1e9d06482aa76303e7342bc6605700ea (patch)
treecccc47c409970b2db7a8f64f6c25e993270ddf9b /t/load-passes.t
downloadYAML-tarball-master.tar.gz
Diffstat (limited to 't/load-passes.t')
-rw-r--r--t/load-passes.t70
1 files changed, 70 insertions, 0 deletions
diff --git a/t/load-passes.t b/t/load-passes.t
new file mode 100644
index 0000000..ce72033
--- /dev/null
+++ b/t/load-passes.t
@@ -0,0 +1,70 @@
+use strict;
+use lib -e 't' ? 't' : 'test';
+use TestYAML tests => 8;
+
+run_load_passes();
+
+__DATA__
+
+=== Bug reported by Rich Morin
++++ SKIP
++++ yaml
+foo:
+ - >
+ This is a test.
+
+=== Bug reported by audreyt
++++ SKIP
++++ yaml
+--- "\n\
+\r"
+
+===
++++ yaml
+---
+foo:
+ bar:
+ baz:
+ poo: bah
+
+
+===
++++ yaml
+--- 42
+
+
+===
++++ yaml
+# comment
+--- 42
+# comment
+
+
+===
++++ yaml
+--- [1, 2, 3]
+
+
+===
++++ yaml
+--- {foo: bar, bar: 42}
+
+
+===
++++ yaml
+--- !foo.com/bar
+- 2
+
+
+===
++++ yaml
+--- &1 !foo.com/bar
+- 42
+
+
+===
++++ yaml
+---
+ - 40
+ - 41
+ - foof