projects
/
p5sagit/Data-Dumper-Concise.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
add Dwarn_only and DwarnS_only
[p5sagit/Data-Dumper-Concise.git]
/
t
/
dwarn_only.t
diff --git a/t/dwarn_only.t
b/t/dwarn_only.t
new file mode 100644
(file)
index 0000000..
0036042
--- /dev/null
+++ b/
t/dwarn_only.t
@@ -0,0
+1,9
@@
+use strict;
+use warnings FATAL => 'all';
+use Test::More qw(no_plan);
+
+use Devel::Dwarn qw(Dwarn_only DwarnS_only);
+
+warn Dwarn_only { $_[0] } qw(one two three);
+
+warn DwarnS_only { $_->[0] } [ qw(one two three) ];