#!/usr/bin/env perl

use strict;
use warnings;
use lib './t/lib';

use Test::Validator::Declarative qw/ check_type_validation /;

check_type_validation(
    type => 'int',
    good => [ 0, 1, -1, 10, -10, 123.456e10 ],
    bad  => [
        '',               # empty string
        'some string',    # arbitrary string
        v5.10.2,          # v-string
        '15-0.8',         # expressions should be not evaluated
        sub { return 'TRUE' },    # coderef
        '1.00', '-1.00', '0.1', '-0.1',
    ],
);

