configure.ac: Replace with a new version.
[u/mdw/catacomb] / tests / mpint
CommitLineData
70b904c5 1# Test vectors for conversion between MP ints and C ints
2#
e6991bb2 3# $Id: mpint,v 1.4 2002/01/13 19:51:34 mdw Exp $
70b904c5 4
5# The tests look messy because I'm fighting with atoi here as well as the
6# integer conversion routines I'm trying to test.
7
8fromuint {
9 0 0;
10 1 1;
11 -5 0xfffffffb;
3485fc41
MW
12 0x7ffff 0x7ffff;
13 0x80000 0x80000;
14 0xfffff 0xfffff;
70b904c5 15 0x7fffffff 0x7fffffff;
fa9c3bb5 16 0x80000000 0x80000000; # Bastard torture test
e6991bb2 17 0xffffffff 0xffffffff;
70b904c5 18}
19
20fromint {
21 0 0;
22 1 1;
23 -5 -5;
3485fc41
MW
24 0x7ffff 0x7ffff;
25 0x80000 0x80000;
26 0xfffff 0xfffff;
70b904c5 27 0x7fffffff 0x7fffffff;
28 -0x80000000 -0x80000000; # Bastard torture test
29}
30
31touint {
32 0 0;
33 1 1;
34 -5 -5;
3485fc41
MW
35 0x7ffff 0x7ffff;
36 0x80000 0x80000;
37 0xfffff 0xfffff;
70b904c5 38 0x7fffffff 0x7fffffff;
39 0x80000000 -0x80000000; # Bastard torture test
e6991bb2 40 0xffffffff 0xffffffff;
70b904c5 41}
42
43toint {
44 0 0;
45 1 1;
46 -5 -5;
3485fc41
MW
47 0x7ffff 0x7ffff;
48 0x80000 0x80000;
49 0xfffff 0xfffff;
70b904c5 50 0x7fffffff 0x7fffffff;
51 -0x80000000 -0x80000000; # Bastard torture test
52}