This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
158467ec58cac40fab2d534c6a0c69269e128ea1
[perl5.git] / cpan / CPAN-Meta-YAML / t / 16_nullrefs.t
1 #!/usr/bin/perl
2
3 # Testing for null references
4
5 use strict;
6 BEGIN {
7         $|  = 1;
8         $^W = 1;
9 }
10
11 use File::Spec::Functions ':ALL';
12 use t::lib::Test;
13 use Test::More tests(1);
14 use CPAN::Meta::YAML;
15
16
17
18
19
20 #####################################################################
21 # Example Empty References
22
23 yaml_ok(
24         <<'END_YAML',
25 --- []
26 --- {}
27 END_YAML
28         [ [], {} ],
29         'Empty references',
30 );