blob: 6e1ced4c4e508fb45d8b3546c42d8db69641cec6 (
plain)
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
|
# -*- perl -*-
use lib qw(t lib);
use strict;
use Test;
plan test => 1;
use TestPreproc;
my $obj = new TestPreproc -expand => [qw(locus macro)];
ok($obj->dump_reformat_synclines,$obj->dump_expect);
__DATA__
!>httpd.conf
# Start of file
ServerRoot "$server_root"
<Macro X $arg>
Foo $arg
</Macro>
EndStatement true
Use X bar
!=
# {{$server_root/httpd.conf}}:1
# Start of file
# {{$server_root/httpd.conf}}:2
ServerRoot "$server_root"
# {{$server_root/httpd.conf}}:6
EndStatement true
# {{$server_root/httpd.conf}}:4
Foo bar
!$
|