File: json-indent.t

package info (click to toggle)
libyaml-syck-perl 1.20-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 932 kB
  • sloc: ansic: 3,987; perl: 3,387; makefile: 4
file content (9 lines) | stat: -rw-r--r-- 179 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
use strict;
use t::TestYAML ();
use JSON::Syck;
use Test::More tests => 1;

my $str = "foo\nbar\nbaz\n";
my $json = JSON::Syck::Dump({ str => $str });

unlike $json, qr/^  bar/m;