Add negative number tests.
authormdw <mdw>
Sun, 8 Oct 2000 12:16:54 +0000 (12:16 +0000)
committermdw <mdw>
Sun, 8 Oct 2000 12:16:54 +0000 (12:16 +0000)
tests/mpbarrett

index d5df502..1d7b0ea 100644 (file)
@@ -1,9 +1,10 @@
 # Test vectors for Barrett modular reduction
 #
-# $Id: mpbarrett,v 1.1 1999/12/10 23:25:27 mdw Exp $
+# $Id: mpbarrett,v 1.2 2000/10/08 12:16:54 mdw Exp $
 
 mpbarrett-reduce {
   17 11 6;
+  -17 11 5;
 
   0x8ab316d0d1a2e88535cf77c1172881ead70d592c59e9c5fbc16e4b0c4dc49481
   0x18ca3bf7ee3c6d7bab3f144b015ccc6c25472843d346b461
@@ -36,6 +37,10 @@ mpbarrett-reduce {
   0x65901dcdad8dd0625d4d158f99b666fee10480d1df15e3bdac640584b9b746bc
   0xd8a1d326fee87d55f39f15b5b2cfe71f5146083928
   0x859c41164983547c03134b99530e25a0f874315964;
+
+  -0x65901dcdad8dd0625d4d158f99b666fee10480d1df15e3bdac640584b9b746bc
+  0xd8a1d326fee87d55f39f15b5b2cfe71f5146083928
+  0x53059210b56528d9f08bca1c5fc1c17e58d1d6dfc4;
 }
 
 mpbarrett-exp {