summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorFlorian Ragwitz <rafl@debian.org>2010-10-15 19:34:52 +0200
committerFlorian Ragwitz <rafl@debian.org>2010-10-15 19:34:52 +0200
commit474af99058f4c0fc3b80d73763da5b29c1ff8c66 (patch)
tree6eceda57ddf0203e541cbfc369d77e837c47d056 /t
parenta12cf05f80a65e40fe339b086ab2d10e18d838c1 (diff)
downloadperl-474af99058f4c0fc3b80d73763da5b29c1ff8c66.tar.gz
Make splice invoke set magic
Diffstat (limited to 't')
-rw-r--r--t/op/splice.t12
1 files changed, 11 insertions, 1 deletions
diff --git a/t/op/splice.t b/t/op/splice.t
index 1ffcb498a7..93718a15cb 100644
--- a/t/op/splice.t
+++ b/t/op/splice.t
@@ -1,6 +1,6 @@
#!./perl
-print "1..18\n";
+print "1..20\n";
@a = (1..10);
@@ -82,3 +82,13 @@ print "ok 17\n";
splice( @a, 1, 2, $a[1], $a[1] );
print "not " unless j(@a) eq j(1,2,2);
print "ok 18\n";
+
+# splice should invoke get magic
+
+print "not " if Foo->isa('Bar');
+print "ok 19\n";
+
+splice @Foo::ISA, 0, 0, 'Bar';
+
+print "not " if !Foo->isa('Bar');
+print "ok 20\n";