File: 04-recursion.t

package info (click to toggle)
libcss-squish-perl 0.10-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, forky, sid, trixie
  • size: 204 kB
  • sloc: perl: 339; makefile: 2
file content (34 lines) | stat: -rw-r--r-- 493 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
#!/usr/bin/perl -w
use strict;
use warnings;

use Test::More tests => 2;

use_ok("CSS::Squish");

my $expected = <<'EOT';

/**
  * From t/css/04-recursion.css: @import "foo/04-recursion-2.css";
  */


/**
  * From t/css/foo/04-recursion-2.css: @import "04-recursion-3.css";
  */

level 3

/** End of 04-recursion-3.css */

level 2

/** End of foo/04-recursion-2.css */

foobar
EOT

my $result = CSS::Squish->concatenate('t/css/04-recursion.css');

is($result, $expected, "Recursive import");