Skip to content

Commit

Permalink
Try to fix 5.8 on travis
Browse files Browse the repository at this point in the history
  • Loading branch information
ingydotnet committed Jun 14, 2014
1 parent a4aaabe commit eb2143c
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions test/2-scalars.t
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This test modified from YAML::Syck suite
use strict;
use Test::More tests => 10;
use Test::More;

require YAML;
YAML->import;
Expand All @@ -22,12 +22,16 @@ is(Load("--- false\n"), "false");
# is(Load("--- false\n"), '');

my $Data = {
Test => '
Test Drive D:\\',
Test => '
Test Drive D:\\',
};

is_deeply(Load(Dump($Data)), $Data);

if ($^V ge v5.9.0) {
# Large data tests. See also https://bugzilla.redhat.com/show_bug.cgi?id=192400.
$Data = ' äø<> " \' " \'' x 40_000;
is(Load(Dump($Data)), $Data);
$Data = ' äø<> " \' " \'' x 40_000;
is(Load(Dump($Data)), $Data);
}

done_testing;

0 comments on commit eb2143c

Please sign in to comment.