diff options
| author | Mattias Andrée <maandree@kth.se> | 2016-05-11 18:22:11 +0200 |
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2016-05-11 18:25:15 +0200 |
| commit | 0703ea9ea4155d59d1356713789c60f5e6e8c7a6 (patch) | |
| tree | 77b55910f77563e4fc2c8ba77351ebaba876d602 /test.c | |
| parent | Fix typo (diff) | |
| download | libzahl-0703ea9ea4155d59d1356713789c60f5e6e8c7a6.tar.gz libzahl-0703ea9ea4155d59d1356713789c60f5e6e8c7a6.tar.bz2 libzahl-0703ea9ea4155d59d1356713789c60f5e6e8c7a6.tar.xz | |
Always satisfy n=qd+r to avoid confusion
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'test.c')
| -rw-r--r-- | test.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -590,10 +590,10 @@ main(void) zseti(a, -7); zseti(b, 3); zmod(c, a, b); - assert(zcmpi(c, 1), == 0); + assert(zcmpi(c, -1), == 0); zseti(b, -3); zmod(c, a, b); - assert(zcmpi(c, 1), == 0); + assert(zcmpi(c, -1), == 0); zseti(a, 7); zseti(b, 3); @@ -608,11 +608,11 @@ main(void) zseti(b, 3); zdivmod(d, c, a, b); assert(zcmpi(d, -2), == 0); - assert(zcmpi(c, 1), == 0); + assert(zcmpi(c, -1), == 0); zseti(b, -3); zdivmod(d, c, a, b); assert(zcmpi(d, 2), == 0); - assert(zcmpi(c, 1), == 0); + assert(zcmpi(c, -1), == 0); zseti(a, 10); zseti(b, -1); |
