diff options
Diffstat (limited to 't/05ifdefine02.t')
-rw-r--r-- | t/05ifdefine02.t | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/t/05ifdefine02.t b/t/05ifdefine02.t new file mode 100644 index 0000000..030ca7b --- /dev/null +++ b/t/05ifdefine02.t @@ -0,0 +1,28 @@ +# -*- perl -*- +use lib qw(t lib); +use strict; +use Test; +plan test => 1; + +use TestPreproc; + +my $obj = new TestPreproc -expand => ['ifdefine']; +ok($obj->dump_raw, $obj->dump_expect); + +__DATA__ +!>httpd.conf +<VirtualHost bar> + ServerName localhost + ServerAdmin root + Define FOO +</VirtualHost> +<IfDefine FOO> + Alias /foo /bar +</IfDefine> +!= +<VirtualHost bar> + ServerName localhost + ServerAdmin root +</VirtualHost> + Alias /foo /bar +!$ |