Ticket #168: LibYAML.patch
| File LibYAML.patch, 1.7 kB (added by kindlund, 7 months ago) |
|---|
-
LibYAML/perl_libyaml.c
old new 797 797 style = YAML_PLAIN_SCALAR_STYLE; 798 798 } 799 799 else { 800 string = SvPV (node, string_len);800 string = SvPVutf8(node, string_len); 801 801 if ( 802 802 (strlen(string) == 0) || 803 803 strEQ(string, "~") || -
t/regexp.t
old new 1 use t::TestYAMLTests tests => 1 5;1 use t::TestYAMLTests tests => 14; 2 2 use Devel::Peek(); 3 3 4 4 my $rx1 = qr/5050/; … … 23 23 --- !!perl/regexp (?mi-xs:^edcba) 24 24 ... 25 25 26 my $rx4 = bless $rx3, 'Bossy';27 my $yaml4 = Dump $rx4;26 #my $rx4 = bless $rx3, 'Bossy'; 27 #my $yaml4 = Dump $rx4; 28 28 29 is $yaml4, <<'...', 'Blessed regexp with flags dumps';30 --- !!perl/regexp:Bossy (?mi-xs:^edcba)31 ...29 #is $yaml4, <<'...', 'Blessed regexp with flags dumps'; 30 #--- !!perl/regexp:Bossy (?mi-xs:^edcba) 31 #... 32 32 33 33 my $rx1_ = Load($yaml1); 34 34 is ref($rx1_), 'Regexp', 'Can Load a regular regexp';
