File: strict_arrays.t

package info (click to toggle)
libtoml-tiny-perl 0.20-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,792 kB
  • sloc: perl: 1,173; 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;