Permalink
Browse files

make tests less dependent on the format of exceptions

  • Loading branch information...
1 parent 0de2a1d commit 00e107ebb4f8360bf7a57743fbce8ff8d951d9b3 @doy committed Feb 3, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 t/description.t
View
6 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"
);
}

0 comments on commit 00e107e

Please sign in to comment.