A variety of small tweaks and fixes. Make mpmont etc. return errors
[u/mdw/catacomb] / tests / gf
index 0c3987f..801993d 100644 (file)
--- a/tests/gf
+++ b/tests/gf
@@ -1,4 +1,4 @@
-# $Id: gf,v 1.1.2.1 2004/03/21 22:39:46 mdw Exp $
+# $Id$
 #
 # Test cases for higher-level binary poly arithmetic.
 
@@ -51,6 +51,19 @@ div {
     0x398c4111da6d06cdf3d83704ee403101;
 }
 
+exp {
+  4 0 1;
+  4 1 4;
+  0x7 2 0x15;
+  3 563 0xf000f000f000f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f000f000f000f;
+}
+
+irred {
+  0xc1a7bd3b4e853fc92d4e1588719986aa 0;
+  0x800000000000000000000000000000000000000c9 1;
+  0x2000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000001 1;
+}
+
 gcd {
   0xc1a7bd3b4e853fc92d4e1588719986aa
     0xbe1f8593ee2c6f8f9497cc7335d97111
@@ -63,6 +76,11 @@ gcd {
     0x35a8e33503b3695be00528f8b82db931
     0x283ed59f1226dcefa7ff0ef87ceff5d5;
   0x800000000000000000000000000000000000000c9
+    4
+    1
+    1
+    0x20000000000000000000000000000000000000032;
+  0x800000000000000000000000000000000000000c9
     0x3f0eba16286a2d57ea0991168d4994637e8343e36
     1
     0xa17e704470d80cb5a78f295db0ce543dda16a169