File: read-file.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 (12 lines) | stat: -rw-r--r-- 316 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
# This tests reading a file using the two different names of the
# routine.

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

my $p = json_file_to_perl ("$Bin/test.json");
ok ($p->{distribution} eq 'Algorithm-NGram');
my $q = read_json ("$Bin/test.json");
ok ($q->{distribution} eq 'Algorithm-NGram');
done_testing ();