summaryrefslogtreecommitdiff
path: root/t/06-dollar-at.t
diff options
context:
space:
mode:
Diffstat (limited to 't/06-dollar-at.t')
-rw-r--r--t/06-dollar-at.t24
1 files changed, 24 insertions, 0 deletions
diff --git a/t/06-dollar-at.t b/t/06-dollar-at.t
new file mode 100644
index 0000000..fdf061a
--- /dev/null
+++ b/t/06-dollar-at.t
@@ -0,0 +1,24 @@
+use strict;
+use warnings;
+
+use Test::More;
+
+use Devel::StackTrace;
+
+{
+ $@ = my $msg = q{Don't tread on me};
+
+ Devel::StackTrace->new()->frame(0)->as_string();
+
+ is( $@, $msg, '$@ is not overwritten in as_string() method' );
+}
+
+{
+ $@ = my $msg = q{Don't tread on me};
+
+ Devel::StackTrace->new( ignore_package => 'Foo' )->frames();
+
+ is( $@, $msg, '$@ is not overwritten in _make_filter() method' );
+}
+
+done_testing();