--- trunk/t/0-common.t 2007/05/27 16:00:26 856 +++ trunk/t/0-common.t 2007/09/03 15:26:46 887 @@ -1,7 +1,7 @@ #!/usr/bin/perl -w use strict; -use Test::More tests => 6; +use Test::More tests => 7; use Test::Exception; use blib; @@ -15,7 +15,7 @@ my $debug = shift @ARGV; ok(my $abs_path = abs_path($0), "abs_path"); -$abs_path =~ s#/[^/]*$#/#; +$abs_path =~ s#/[^/]*$#/#; # my $path = "$abs_path/conf/test.yml"; @@ -27,3 +27,4 @@ throws_ok { $common->fill_in( '$foo', bar => 42 ) } qr/unknown var/, 'fill_in no variable'; cmp_ok( $common->fill_in( 'foo = $foo bar = $bar', foo => 42, bar => 1 ), 'eq', 'foo = 42 bar = 1', 'fill_in' ); +like $common->var_path( qw/foo bar baz/ ), qr/var.foo.bar.baz/, 'var_path';