File: html_wrap.t

package info (click to toggle)
libspoon-perl 0.24-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 296 kB
  • sloc: perl: 2,640; makefile: 2
file content (34 lines) | stat: -rw-r--r-- 808 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
use lib 'lib', 't';
use warnings;
use strict;
use Test::More tests => 10;
use IO::All;

io->dir('t/output')->rmtree;

require TestC;
my $test = TestC->new;
no strict 'refs';
$test->quiet(1);
$test->extract_files(1);

ok(io('t/output/file1.html')->exists);
ok(io('t/output/file2.html')->exists);
ok(io('t/output/file3.html')->exists);
ok(io('t/output/file4.html')->exists);
ok(io('t/output/file5.html')->exists);
is(io('t/output/file1.html')->all, 
   "<!-- BEGIN file1 -->\n<hr>\n<!-- END file1 -->\n"
  );
is(io('t/output/file2.html')->all, 
   "<!-- BEGIN file2 -->\n<hr>\n<!-- END file2 -->\n"
  );
is(io('t/output/file3.html')->all, 
   " <hr>\n<!-- END file3 -->\n"
  );
is(io('t/output/file4.html')->all, 
   "<!-- BEGIN file4 -->\n<hr> \n"
  );
is(io('t/output/file5.html')->all, 
   " <hr>\n\n"
  );