summaryrefslogtreecommitdiff
path: root/t/dump-tests-514.t
blob: e115ffc1293c7022cb04e7aa08676450a6b7525a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
use strict;
use lib -e 't' ? 't' : 'test';
use Test::More;
BEGIN {
  unless ( qr/x/ =~ /\(\?\^/ ){
    plan skip_all => "test only for perls v5.13.5-11-gfb85c04 or later";
  }
}
use TestYAML tests => 1;

no_diff();
run_roundtrip_nyn('dumper');

__DATA__
===
+++ no_round_trip
Since we don't use eval for regexp reconstitution any more (for safety
sake) this test doesn't roundtrip even though the values are equivalent.
+++ perl
[qr{bozo$}i]
+++ yaml
---
- !!perl/regexp (?^i:bozo$)