projects
/
u
/
mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tests/gdsa: Test from P1363.
[u/mdw/catacomb]
/
tests
/
mpint
diff --git
a/tests/mpint
b/tests/mpint
index
771ea0d
..
49157ba
100644
(file)
--- a/
tests/mpint
+++ b/
tests/mpint
@@
-1,6
+1,6
@@
# Test vectors for conversion between MP ints and C ints
#
# Test vectors for conversion between MP ints and C ints
#
-# $Id: mpint,v 1.
3 2000/07/09 21:33:5
4 mdw Exp $
+# $Id: mpint,v 1.
4 2002/01/13 19:51:3
4 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.
# The tests look messy because I'm fighting with atoi here as well as the
# integer conversion routines I'm trying to test.
@@
-9,14
+9,21
@@
fromuint {
0 0;
1 1;
-5 0xfffffffb;
0 0;
1 1;
-5 0xfffffffb;
+ 0x7ffff 0x7ffff;
+ 0x80000 0x80000;
+ 0xfffff 0xfffff;
0x7fffffff 0x7fffffff;
0x80000000 0x80000000; # Bastard torture test
0x7fffffff 0x7fffffff;
0x80000000 0x80000000; # Bastard torture test
+ 0xffffffff 0xffffffff;
}
fromint {
0 0;
1 1;
-5 -5;
}
fromint {
0 0;
1 1;
-5 -5;
+ 0x7ffff 0x7ffff;
+ 0x80000 0x80000;
+ 0xfffff 0xfffff;
0x7fffffff 0x7fffffff;
-0x80000000 -0x80000000; # Bastard torture test
}
0x7fffffff 0x7fffffff;
-0x80000000 -0x80000000; # Bastard torture test
}
@@
-25,14
+32,21
@@
touint {
0 0;
1 1;
-5 -5;
0 0;
1 1;
-5 -5;
+ 0x7ffff 0x7ffff;
+ 0x80000 0x80000;
+ 0xfffff 0xfffff;
0x7fffffff 0x7fffffff;
0x80000000 -0x80000000; # Bastard torture test
0x7fffffff 0x7fffffff;
0x80000000 -0x80000000; # Bastard torture test
+ 0xffffffff 0xffffffff;
}
toint {
0 0;
1 1;
-5 -5;
}
toint {
0 0;
1 1;
-5 -5;
+ 0x7ffff 0x7ffff;
+ 0x80000 0x80000;
+ 0xfffff 0xfffff;
0x7fffffff 0x7fffffff;
-0x80000000 -0x80000000; # Bastard torture test
}
0x7fffffff 0x7fffffff;
-0x80000000 -0x80000000; # Bastard torture test
}