Skip to content

Commit 6b88b07

Browse files
author
Reini Urban
committed
add t/nonstrict.t (TODO)
1 parent 4e9b4c1 commit 6b88b07

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

test/nonstrict.t

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
use t::TestYAMLTests tests => 2;
2+
3+
my $yaml = <<"...";
4+
---
5+
requires:
6+
Apache::Request: 1.1
7+
Class::Date: 
8+
...
9+
10+
ok (! eval{ Load($yaml) }, "strict yaml fails" );
11+
12+
{
13+
no warnings 'once';
14+
local $YAML::XS::NonStrict = 1;
15+
my $h;
16+
ok ( $h = Load($yaml), "nonstrict yaml passes" );
17+
}
18+

0 commit comments

Comments
 (0)