File: integer-edge-case.t

package info (click to toggle)
libspecio-perl 0.52-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,132 kB
  • sloc: perl: 5,200; sh: 23; makefile: 2
file content (15 lines) | stat: -rw-r--r-- 396 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use strict;
use warnings;

use Test::More 0.96;

use Specio::Declare;
use Specio::Library::Builtins;

my $int = t('Int');
ok( $int->check(42),                   '42 is an Int' );
ok( $int->check(42.0),                 '42.0 is an Int' );
ok( !$int->check(42.5),                '42.5 is not an Int' );
ok( !$int->check(124512.000000000123), '124512.000000000123 is not an Int' );

done_testing();