X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit%2FConfig-Any.git;a=blobdiff_plain;f=t%2F55-yaml.t;fp=t%2F55-yaml.t;h=2b2c52ded65bf172deba8d1cf4762f8884a6d832;hp=b6d1f9e7102fb5eb09fe9aa81bfe3662f55b0d63;hb=e0186698ea45049a14a46eeffeb648a4b6092785;hpb=cb49d8a43a30d223994063bb2abf5122a0ed1651 diff --git a/t/55-yaml.t b/t/55-yaml.t index b6d1f9e..2b2c52d 100644 --- a/t/55-yaml.t +++ b/t/55-yaml.t @@ -24,8 +24,8 @@ else { my $file = 't/invalid/conf.yml'; my $config = eval { Config::Any::YAML->load( $file ) }; - ok( !$config, 'config load failed' ); - ok( $@, "error thrown ($@)" ); + is $config, undef, 'config load failed'; + isnt $@, '', 'error thrown'; } # parse error generated on invalid config @@ -33,6 +33,6 @@ else { my $file = 't/invalid/conf.yml'; my $config = eval { Config::Any->load_files( { files => [$file], use_ext => 1} ) }; - ok( !$config, 'config load failed' ); - ok( $@, "error thrown ($@)" ); + is $config, undef, 'config load failed'; + isnt $@, '', 'error thrown'; }