Increase default pipe buffer size on VMS to 8192 on 64-bit systems.
[p5sagit/p5-mst-13.2.git] / cpan / Parse-CPAN-Meta / t / 04_scalar.t
CommitLineData
be96f5c3 1#!/usr/bin/perl
2
3# Testing of basic document structures
4
5BEGIN {
6 if( $ENV{PERL_CORE} ) {
7 chdir 't';
8 @INC = ('../lib', 'lib');
9 }
10 else {
11 unshift @INC, 't/lib/';
12 }
13}
14
15use strict;
16BEGIN {
17 $| = 1;
18 $^W = 1;
19}
20
21use Test::More tests => 2;
22use Parse::CPAN::Meta ();
23
24my $one = <<'END_YAML';
25---
26- foo
27END_YAML
28
29my $two = <<'END_YAML';
30---
31- foo
32---
33- bar
34END_YAML
35
36my $one_scalar_tiny = Parse::CPAN::Meta::Load( $one );
37my $two_scalar_tiny = Parse::CPAN::Meta::Load( $two );
38
39is_deeply( $one_scalar_tiny, [ 'foo' ], 'one: Parsed correctly' );
40is_deeply( $two_scalar_tiny, [ 'bar' ], 'two: Parsed correctly' );