Show
Ignore:
Timestamp:
11/07/08 15:56:01 (5 years ago)
Author:
vkgtaro
Message:

Config::Any::YAML->is_supported を調べてから走るように変更

Location:
lang/perl/Config-Multi/trunk/t
Files:
7 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/Config-Multi/trunk/t/01-loadling.t

    r11786 r22928  
    11use Test::Base; 
     2use Config::Any::YAML; 
    23use Config::Multi; 
    34use FindBin; 
     
    67use Data::Dumper; 
    78 
    8 plan tests => 1 * blocks ; 
     9if ( !Config::Any::YAML->is_supported ) { 
     10    plan skip_all => 'YAML format not supported'; 
     11} 
     12else { 
     13    plan tests => 1 * blocks; 
     14} 
    915 
    1016my $dir = File::Spec->catfile( $FindBin::Bin , 'conf' ); 
  • lang/perl/Config-Multi/trunk/t/02-overwrite.t

    r11786 r22928  
    11use Test::Base; 
     2use Config::Any::YAML; 
    23use Config::Multi; 
    34use FindBin; 
     
    67use Data::Dumper; 
    78 
    8 plan tests => 3 * blocks ; 
     9if ( !Config::Any::YAML->is_supported ) { 
     10    plan skip_all => 'YAML format not supported'; 
     11} 
     12else { 
     13    plan tests => 3 * blocks ; 
     14} 
    915 
    1016my $dir = File::Spec->catfile( $FindBin::Bin , 'conf' ); 
  • lang/perl/Config-Multi/trunk/t/03-multi.t

    r11786 r22928  
    11use Test::Base; 
     2use Config::Any::YAML; 
    23use Config::Multi; 
    34use FindBin; 
     
    67use Data::Dumper; 
    78 
    8 plan tests => 3 * blocks ; 
     9if ( !Config::Any::YAML->is_supported ) { 
     10    plan skip_all => 'YAML format not supported'; 
     11} 
     12else { 
     13    plan tests => 3 * blocks ; 
     14} 
    915 
    1016my $dir = File::Spec->catfile( $FindBin::Bin , 'conf' ); 
  • lang/perl/Config-Multi/trunk/t/04-env.t

    r11786 r22928  
    11use Test::Base; 
     2use Config::Any::YAML; 
    23use Config::Multi; 
    34use FindBin; 
     
    67use Data::Dumper; 
    78 
    8 plan tests => 1 * blocks ; 
     9if ( !Config::Any::YAML->is_supported ) { 
     10    plan skip_all => 'YAML format not supported'; 
     11} 
     12else { 
     13    plan tests => 1 * blocks ; 
     14} 
    915 
    1016my $dir = File::Spec->catfile( $FindBin::Bin , 'conf' ); 
  • lang/perl/Config-Multi/trunk/t/05-no-prefix.t

    r11786 r22928  
    11use Test::Base; 
     2use Config::Any::YAML; 
    23use Config::Multi; 
    34use FindBin; 
     
    67use Data::Dumper; 
    78 
    8 plan tests => 1 * blocks ; 
     9if ( !Config::Any::YAML->is_supported ) { 
     10    plan skip_all => 'YAML format not supported'; 
     11} 
     12else { 
     13    plan tests => 1 * blocks ; 
     14} 
    915 
    1016my $dir = File::Spec->catfile( $FindBin::Bin , 'conf' ); 
  • lang/perl/Config-Multi/trunk/t/06-extension.t

    r13823 r22928  
    11use Test::Base; 
     2use Config::Any::YAML; 
    23use Config::Multi; 
    34use FindBin; 
     
    67use Data::Dumper; 
    78 
    8 plan tests => 1 * blocks ; 
     9if ( !Config::Any::YAML->is_supported ) { 
     10    plan skip_all => 'YAML format not supported'; 
     11} 
     12else { 
     13    plan tests => 1 * blocks ; 
     14} 
    915 
    1016my $dir = File::Spec->catfile( $FindBin::Bin , 'conf' ); 
  • lang/perl/Config-Multi/trunk/t/07-unicode-option.t

    r19195 r22928  
    11use Test::Base; 
     2use Config::Any::YAML; 
    23use Config::Multi; 
    34use FindBin; 
     
    78use Data::Dumper; 
    89 
    9 plan tests => 1 * blocks ; 
     10if ( !Config::Any::YAML->is_supported ) { 
     11    plan skip_all => 'YAML format not supported'; 
     12} 
     13else { 
     14    plan tests => 1 * blocks; 
     15} 
    1016 
    1117my $dir = File::Spec->catfile( $FindBin::Bin , 'conf' ); 
     
    2127__END__ 
    2228=== test 
    23 --- expected yaml 
    24 hoge: ほげ 
    25 foo: 
    26   bar: ばー 
    27 fuga: ふが 
     29--- expected eval 
     30{ 
     31    hoge => 'ほげ', 
     32    foo  => { 
     33        bar => 'ばー', 
     34    }, 
     35    fuga => 'ふが', 
     36}