Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
sharyanto committed Aug 3, 2011
1 parent 0a1e1a2 commit ac997fc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions t/01-basics.t
Expand Up @@ -12,7 +12,8 @@ my $str = Object::BlankStr->new;
is("$str", "", "object stringifies to empty string");

eval { die $str };
my $eval_err = "$@";
is($eval_err, "", "die Object::BlankStr->new doesn't print anything");
my $eval_err = $@;
is("$eval_err", "", "die Object::BlankStr->new doesn't print anything");
is(ref($eval_err), "Object::BlankStr", "object returned by die()");

done_testing();

0 comments on commit ac997fc

Please sign in to comment.