File: 05_export.t

package info (click to toggle)
libyaml-tiny-perl 1.51-1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 380 kB
  • sloc: perl: 2,482; makefile: 45
file content (22 lines) | stat: -rw-r--r-- 463 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/perl

# Testing of basic document structures

use strict;
BEGIN {
	$|  = 1;
	$^W = 1;
}

use Test::More tests => 6;
use YAML::Tiny;



ok defined &main::Load, 'Load is exported';
ok defined &main::Dump, 'Dump is exported';
ok not(defined &main::LoadFile), 'Load is exported';
ok not(defined &main::DumpFile), 'Dump is exported';

ok \&main::Load == \&YAML::Tiny::Load, 'Load is YAML::Tiny';
ok \&main::Dump == \&YAML::Tiny::Dump, 'Dump is YAML::Tiny';