File: tokenize-bug.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 (14 lines) | stat: -rw-r--r-- 254 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use warnings 'all';
use strict;
use Test::More;
use JSON::Tokenize ':all';
use JSON::Parse 'assert_valid_json';

my $input = '{"tuttie":["fruity\"\"\"\"", true, 100]}';
eval {
    my $token = tokenize_json ($input);
};
ok (! $@);
done_testing ();
exit;