# Test vectors for conversion between MP ints and C ints # # $Id: mpint,v 1.2 1999/12/10 23:26:15 mdw Exp $ # The tests look messy because I'm fighting with atoi here as well as the # integer conversion routines I'm trying to test. fromuint { 0 0; 1 1; -5 0xfffffffb; 0x7fffffff 0x7fffffff; 0x80000000 0x80000000; # Bastard torture test } fromint { 0 0; 1 1; -5 -5; 0x7fffffff 0x7fffffff; -0x80000000 -0x80000000; # Bastard torture test } touint { 0 0; 1 1; -5 -5; 0x7fffffff 0x7fffffff; 0x80000000 -0x80000000; # Bastard torture test } toint { 0 0; 1 1; -5 -5; 0x7fffffff 0x7fffffff; -0x80000000 -0x80000000; # Bastard torture test }