diff options
Diffstat (limited to 't/03-description.t')
-rw-r--r-- | t/03-description.t | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/t/03-description.t b/t/03-description.t index 97f8372..15a2ce1 100644 --- a/t/03-description.t +++ b/t/03-description.t @@ -37,4 +37,17 @@ SOURCE ); } +{ + my $code = eval_closure( + source => $source, + line => 100, + description => 'accessor foo (defined at Class.pm line 282)', + ); + + like( + exception { $code->() }, + qr/^foo at accessor foo \(defined at Class\.pm line 282\) line 101\n/, + "description is set" + ); +} done_testing; |