File: syntax.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 (13 lines) | stat: -rw-r--r-- 240 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
# This is a test for a false syntax error produced by this module on
# legitimate input.

use FindBin '$Bin';
use lib "$Bin";
use JPT;

eval {
    my $json = read_json ("$Bin/syntax-error-1.json");
};
note ($@);
ok (! $@);
done_testing ();