File: whitespace.t

package info (click to toggle)
libjson-parse-perl 0.62-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 572 kB
  • sloc: ansic: 3,614; perl: 475; makefile: 12
file content (15 lines) | stat: -rw-r--r-- 260 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use FindBin '$Bin';
use lib "$Bin";
use JPT;
my $json = <<EOF;
{
   "timed_out" : false,
   "took" : 3
}
EOF
ok (valid_json ($json), "valid json with extra whitespace");
eval {
    json_to_perl ($json);
};
ok (! $@, "No errors parsing JSON");
done_testing ();