summaryrefslogtreecommitdiff
path: root/t/dump-tests-512.t
diff options
context:
space:
mode:
Diffstat (limited to 't/dump-tests-512.t')
-rw-r--r--t/dump-tests-512.t24
1 files changed, 24 insertions, 0 deletions
diff --git a/t/dump-tests-512.t b/t/dump-tests-512.t
new file mode 100644
index 0000000..cf97c9e
--- /dev/null
+++ b/t/dump-tests-512.t
@@ -0,0 +1,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$)
+