File: 06_mkdtskel.t

package info (click to toggle)
libxml-dt-perl 0.3-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, sarge
  • size: 296 kB
  • ctags: 42
  • sloc: perl: 914; xml: 424; makefile: 64
file content (23 lines) | stat: -rw-r--r-- 350 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
23
#-*- cperl -*-

use Test::More tests => 1;
use XML::DT;

open TMP, ">_${$}_" or die "Cannot create temporary file\n";
select TMP;
mkdtskel("t/05_input.xml");
close TMP;

open A, "_${$}_";
open B, "t/06_output.pl";
my $ok = 1;
while(defined($a = <A>) && defined($b = <B>)) {
  $ok = 0 unless $a eq $b;
}
close B;
close A;

ok($ok);

unlink "_${$}_";