math/f-{prime,niceprime}.c: Fix reduction for `add', `sub' and `neg'.
[catacomb] / math / t / ec
index acd16d6..1dc56ab 100644 (file)
--- a/math/t/ec
+++ b/math/t/ec
@@ -172,6 +172,13 @@ neg {
     "0x188da80eb03090f67cbf20eb43a18800f4ff0afd82ff1012,
        0xf8e6d46a003725879cefee1294db32298c06885ee186b7ee";
 
+  "prime: 6277101735386680763835789423207666416102355444464034512659; prime: -3, 6"
+    "0xcdf65dc6c906c5c240dba0d156b911614abe806fa2b8dc0a, 0"
+    "0xcdf65dc6c906c5c240dba0d156b911614abe806fa2b8dc0a, 0";
+  "niceprime: 6277101735386680763835789423207666416102355444464034512659; prime: -3, 6"
+    "0xcdf65dc6c906c5c240dba0d156b911614abe806fa2b8dc0a, 0"
+    "0xcdf65dc6c906c5c240dba0d156b911614abe806fa2b8dc0a, 0";
+
   "niceprime: 6277101735386680763835789423207666416083908700390324961279
      prime: -3, 0x64210519e59c80e70fa7e9ab72243049feb8deecc146b9b1"
     "0x188da80eb03090f67cbf20eb43a18800f4ff0afd82ff1012,