blob: cf97c9e3c0cbbddbeb047aeac7b976e395a23475 (
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 {
if ( qr/x/ =~ /\(\?\^/ ){
plan skip_all => "test only for perls before v5.13.5-11-gfb85c04";
}
}
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-xsm:bozo$)
|