blob: 645fa4e186779832362ba9f9f2f3f360fa336a0c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
use strict;
use lib -e 't' ? 't' : 'test';
# This simply tests that a given piece of invalid YAML fails to parse
use TestYAML tests => 4;
filters {
msg => 'regexp',
yaml => 'yaml_load_or_fail',
};
run_like yaml => 'msg';
__DATA__
===
+++ SKIP
This test hangs YAML.pm
+++ msg
YAML Error: Inconsistent indentation level
+++ yaml
a: *
===
+++ msg
YAML Error: Inconsistent indentation level
+++ yaml
--- |\
foo\zbar
===
+++ msg
YAML Error: Unrecognized implicit value
+++ yaml
--- @ 42
===
+++ msg
YAML Error: Inconsistent indentation level
+++ yaml
---
- 1
-2
===
+++ msg
Unrecognized TAB policy
+++ yaml
--- #TAB:MOBY
- foo
|