diff options
Diffstat (limited to 't/dump-synopsis.t')
-rw-r--r-- | t/dump-synopsis.t | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/t/dump-synopsis.t b/t/dump-synopsis.t new file mode 100644 index 0000000..d65c49a --- /dev/null +++ b/t/dump-synopsis.t @@ -0,0 +1,21 @@ +use strict; +use warnings; + +use Test::More tests => 1; + +my $success = 0; +my $err; +{ + local $@; + eval { + require YAML::Dumper; + my $hash = {}; + my $dumper = YAML::Dumper->new(); + my $string = $dumper->dump($hash); + $success = 1; + }; + $err = $@; +} +is( $success, 1, "Basic YAML::Dumper usage worked as expected" ) + or diag( explain($err) ); + |