File: bugs.t

package info (click to toggle)
libmath-int128-perl 0.22-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, sid
  • size: 604 kB
  • sloc: perl: 2,614; ansic: 340; makefile: 3
file content (18 lines) | stat: -rw-r--r-- 380 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/perl

use strict;
use warnings;

use Test::More 0.88;

use Math::Int128 qw( string_to_uint128 );
use Math::Int128::die_on_overflow;

#101982
my $hex = "0xffffffffffffffffffffffffffffffff";
my $dec = "340282366920938463463374607431768211455";
my $v1 = string_to_uint128($hex);
my $v2 = string_to_uint128($dec);
is("$v1", "$v2", "#101982: strtoint128");

done_testing();