summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Brine <ikegami@adaelis.com>2011-02-21 02:35:24 -0800
committerFather Chrysostomos <sprout@cpan.org>2011-05-18 14:54:57 -0700
commitfad0c7579d7ed7747af3ccc32256f5f00b40600f (patch)
tree68f5a861ca0a3134d284306102e6df077c5bd681
parent640c0c3e6cbf43a7a03079adc89e0ad39fb33a19 (diff)
downloadperl-fad0c7579d7ed7747af3ccc32256f5f00b40600f.tar.gz
TODO tests for RT#84526 - given needs to handle magical TARG
-rw-r--r--t/op/switch.t13
1 files changed, 12 insertions, 1 deletions
diff --git a/t/op/switch.t b/t/op/switch.t
index bcf77d4b4f..c0e57a7ce6 100644
--- a/t/op/switch.t
+++ b/t/op/switch.t
@@ -9,7 +9,7 @@ BEGIN {
use strict;
use warnings;
-plan tests => 164;
+plan tests => 166;
# The behaviour of the feature pragma should be tested by lib/switch.t
# using the tests in t/lib/switch/*. This file tests the behaviour of
@@ -1200,6 +1200,17 @@ unreified_check(undef,"");
is("@in_slice", "a", "when(hash slice)");
}
+{ # RT#84526 - Handle magical TARG
+ local our $TODO = "RT#84526 - Handle magical TARG";
+ my $x = my $y = "aaa";
+ for ($x, $y) {
+ given ($_) {
+ is(pos, undef, "handle magical TARG");
+ pos = 1;
+ }
+ }
+}
+
# Okay, that'll do for now. The intricacies of the smartmatch
# semantics are tested in t/op/smartmatch.t
__END__