Permalink
Browse files

* applied patch from Leon to extend test coverage

git-svn-id: svn://svn.tt2.org/tt/Template2/trunk@200 d5a88997-0a34-4036-9ed2-92fb5d660d91
  • Loading branch information...
1 parent da13c09 commit af43b2e4dee722fdfd2f6de60202b0156942806c @abw committed Aug 29, 2001
Showing with 6 additions and 0 deletions.
  1. +6 −0 t/exception.t
View
@@ -45,3 +45,9 @@ ok( $e2->text() eq 'text to prepend the current output buffer' );
my @handlers = ('something', 'e2', 'e1.type');
ok( $e1->select_handler(@handlers) eq 'e1.type' );
ok( $e2->select_handler(@handlers) eq 'e2' );
+
+my $e3 = Template::Exception->new('e3.type', 'e3.info', undef);
+ok( $e3 );
+ok( $e3->text() eq '');
+ok( $e3->as_string() eq 'e3.type error - e3.info' );
+

0 comments on commit af43b2e

Please sign in to comment.