File: strict_arrays.t

package info (click to toggle)
libtoml-tiny-perl 0.15-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,780 kB
  • sloc: perl: 1,148; makefile: 10
file content (18 lines) | stat: -rw-r--r-- 292 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use strict;
use warnings;

use Test2::V0;
use TOML::Tiny;

my $tt = TOML::Tiny->new(strict_arrays => 1);

subtest 'string containing int recognized as type=integer' => sub{
  my $toml = q{
[test]
array = ["u", "u2"]
  };

  ok lives{ $tt->decode($toml) }, 'parse succeeds';
};

done_testing;