Debian Codegraph @

cpan/CPAN-Meta-YAML/t/tml-local/yaml-roundtrip/sequence.tml

raw
1 === Empty sequence
2 --- yaml
3 \--- []
4 --- perl
5 [ [] ]
6
7 # Simple lists
8 === one_list1
9 --- yaml
10 ---
11 - foo
12
13 --- perl
14 [ [ 'foo' ] ]
15
16 # Implicit document start
17 === implicit_array
18 --- yaml
19 - foo
20
21 --- perl
22 [ [ 'foo' ] ]
23
24
25
26 === one_list2
27 --- yaml
28 ---
29 - foo
30 - bar
31
32 --- perl
33 [ [ 'foo', 'bar' ] ]
34
35
36 === one_listundef
37 --- yaml
38 ---
39 - ~
40 - bar
41
42 --- perl
43 [ [ undef, 'bar' ] ]
44
45
46 === one_listundefs
47 --- noyamlpm
48 --- yaml
49 ---
50 - ~
51 -
52 -
53
54 --- perl
55 [ [ undef, undef, undef ] ]
56
57
58 #####################################################################
59 # Empty Values and Premature EOF
60
61 === empty array keys
62 --- yaml
63 ---
64 - foo
65 -
66 -
67 --- perl
68 [ [ 'foo', undef, undef ] ]
69 --- noyamlpm
70
71 #####################################################################
72 # Empty Quote Line
73
74 === empty quote line
75 --- yaml
76 ---
77 - foo
78 \#
79 - bar
80 --- perl
81 [ [ "foo", "bar" ] ]
82
83 #####################################################################
84 # Trailing Whitespace
85 #
86 === trailing whitespace
87 --- yaml
88 ---
89 abstract: Generate fractal curves
90 foo: ~
91 arr:
92 # THESE LINES HAVE INTENTIONAL TRAILING WHITESPACE
93 - foo
94 - ~
95 - 'bar'
96 --- perl
97 [ {
98 abstract => 'Generate fractal curves',
99 foo => undef,
100 arr => [ 'foo', undef, 'bar' ],
101 } ]
102
103
104