File: storable.t

package info (click to toggle)
libmath-bigint-gmp-perl 1.7003-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 8,016 kB
  • sloc: pascal: 3,998; perl: 280; makefile: 9; sh: 1
file content (16 lines) | stat: -rw-r--r-- 280 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# -*- mode: perl; -*-

use strict;
use warnings;
use Test::More tests => 1;

use Math::BigInt::GMP;

use Storable qw(freeze thaw);

my $num = Math::BigInt::GMP->_new(42);

my $serialised = freeze $num;
my $cloned = thaw $serialised;

ok(!Math::BigInt::GMP->_acmp($cloned, $num));