CPAN-Meta-YAML

 view release on metacpan or  search on metacpan

t/tml-local/load-error/scalar.tml  view on Meta::CPAN

=== dash
--- yaml
foo: -
--- error: E_PLAIN

=== leading ampersand
--- yaml
foo: @INC
--- error: E_PLAIN

=== leading percent
--- yaml
foo: %INC
--- error: E_PLAIN

=== trailing colon
--- yaml
foo: bar:
--- error: E_PLAIN

=== key key value

t/tml-local/yaml-roundtrip/document.tml  view on Meta::CPAN

# Simple inline case (comment variant)
=== simple_doctype_comment
--- yaml
--- #YAML:1.0
foo: bar
--- perl
[ { foo => 'bar' } ]
--- nosyck


# Simple inline case (percent variant)
=== simple_doctype_percent
--- yaml
--- %YAML:1.0
foo: bar
--- perl
[ { foo => 'bar' } ]
--- noyamlpm
--- noxs


# Simple header (comment variant)

t/tml-local/yaml-roundtrip/document.tml  view on Meta::CPAN

foo: bar
--- #YAML:1.0
- 1
--- #YAML:1.0
foo: bar
--- perl
[ { foo => 'bar' }, [ 1 ], { foo => 'bar' } ]


# Simple pre-document case (comment variant)
=== predocument_percent
--- yaml
\%YAML 1.1
---
foo: bar
--- perl
[ { foo => 'bar' } ]
--- noyamlpm
--- nosyck




( run in 0.376 second using v1.01-cache-2.11-cpan-709fd43a63f )