diff options
author | Jack Lloyd <[email protected]> | 2018-11-29 19:10:39 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-11-30 12:47:22 -0500 |
commit | 66620863938f08555ceb1f88b58d15142c26c746 (patch) | |
tree | 0c337bbcb4040fa903af3a08867f8eb62011bdc7 /src/tests | |
parent | 2d9a5c1ffa61c2a30cb66518ef2de496467540ed (diff) |
Simplify BigInt addition and subtraction
Addition already has to handle negative numbers so make it do
double duty for subtraction.
Diffstat (limited to 'src/tests')
-rw-r--r-- | src/tests/data/bn/sub.vec | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/tests/data/bn/sub.vec b/src/tests/data/bn/sub.vec index a3cac4206..2bab86339 100644 --- a/src/tests/data/bn/sub.vec +++ b/src/tests/data/bn/sub.vec @@ -28,6 +28,10 @@ In2 = -1 Output = 2 In1 = 1 +In2 = 2 +Output = -1 + +In1 = 1 In2 = -2 Output = 3 @@ -35,6 +39,26 @@ In1 = -1 In2 = 2 Output = -3 +In1 = -1 +In2 = -2 +Output = 1 + +In1 = 2 +In2 = 1 +Output = 1 + +In1 = 2 +In2 = -1 +Output = 3 + +In1 = -2 +In2 = 1 +Output = -3 + +In1 = -1 +In2 = -2 +Output = 1 + In1 = -3 In2 = -1 Output = -2 |