This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Test that we can do embedded 0 bytes in hints.
authorNicholas Clark <nick@ccl4.org>
Wed, 12 Apr 2006 16:18:30 +0000 (16:18 +0000)
committerNicholas Clark <nick@ccl4.org>
Wed, 12 Apr 2006 16:18:30 +0000 (16:18 +0000)
p4raw-id: //depot/perl@27777

t/op/caller.t

index 082f595..c32b044 100644 (file)
@@ -5,7 +5,7 @@ BEGIN {
     chdir 't' if -d 't';
     @INC = '../lib';
     require './test.pl';
-    plan( tests => 64 );
+    plan( tests => 65 );
 }
 
 my @c;
@@ -225,3 +225,10 @@ print "# which now works inside evals\n";
     eval "is(get_dooot(), 54); 1" or die $@;
 EOE
 }
+
+{
+    BEGIN {
+       $^H{dooot} = "FIP\0FOP\0FIDDIT\0FAP";
+    }
+    is(get_dooot(), "FIP\0FOP\0FIDDIT\0FAP", "Can do embedded 0 bytes");
+}