X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/blobdiff_plain/70b904c575877c683e6c79cac4fbf7c6d89d0bde..59919ae4b1721ca271c3d3e5955c09d322573821:/tests/mpint diff --git a/tests/mpint b/tests/mpint index d0c9667..c4faa39 100644 --- a/tests/mpint +++ b/tests/mpint @@ -1,6 +1,6 @@ # Test vectors for conversion between MP ints and C ints # -# $Id: mpint,v 1.1 1999/11/25 11:38:33 mdw Exp $ +# $Id: mpint,v 1.4 2002/01/13 19:51:34 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. @@ -10,7 +10,8 @@ fromuint { 1 1; -5 0xfffffffb; 0x7fffffff 0x7fffffff; - -0x80000000 0x80000000; # Bastard torture test + 0x80000000 0x80000000; # Bastard torture test + 0xffffffff 0xffffffff; } fromint { @@ -27,6 +28,7 @@ touint { -5 -5; 0x7fffffff 0x7fffffff; 0x80000000 -0x80000000; # Bastard torture test + 0xffffffff 0xffffffff; } toint { @@ -36,4 +38,3 @@ toint { 0x7fffffff 0x7fffffff; -0x80000000 -0x80000000; # Bastard torture test } -