diff options
author | Jesse Luehrs <doy@tozt.net> | 2012-02-03 15:51:09 -0600 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2012-02-03 15:51:09 -0600 |
commit | 00e107ebb4f8360bf7a57743fbce8ff8d951d9b3 (patch) | |
tree | 1500ca11a48c4124c47e5ca78e66ee709a67b2b3 | |
parent | 0de2a1d9871b2c7583379c34597057603336fdd2 (diff) | |
download | eval-closure-00e107ebb4f8360bf7a57743fbce8ff8d951d9b3.tar.gz eval-closure-00e107ebb4f8360bf7a57743fbce8ff8d951d9b3.zip |
make tests less dependent on the format of exceptions
-rw-r--r-- | t/description.t | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/t/description.t b/t/description.t index 15a2ce1..269b530 100644 --- a/t/description.t +++ b/t/description.t @@ -19,7 +19,7 @@ SOURCE like( exception { $code->() }, - qr/^foo at \(eval \d+\) line \d+\n/, + qr/^foo at \(eval \d+\) line \d+/, "no location info if context isn't passed" ); } @@ -32,7 +32,7 @@ SOURCE like( exception { $code->() }, - qr/^foo at accessor foo \(defined at Class\.pm line 282\) line 2\n/, + qr/^foo at accessor foo \(defined at Class\.pm line 282\) line 2/, "description is set" ); } @@ -46,7 +46,7 @@ SOURCE like( exception { $code->() }, - qr/^foo at accessor foo \(defined at Class\.pm line 282\) line 101\n/, + qr/^foo at accessor foo \(defined at Class\.pm line 282\) line 101/, "description is set" ); } |