summaryrefslogtreecommitdiff
path: root/src/test-mp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/test-mp.c')
-rw-r--r--src/test-mp.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/test-mp.c b/src/test-mp.c
index 126b2df..fa7408f 100644
--- a/src/test-mp.c
+++ b/src/test-mp.c
@@ -1,6 +1,6 @@
/*
* Copyright (C) 2008-2011 Robert Ancell.
- *
+ *
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software
* Foundation, either version 2 of the License, or (at your option) any later
@@ -144,11 +144,11 @@ static void
test_mp()
{
MPNumber zero, one, minus_one;
-
+
mp_set_from_integer(0, &zero);
mp_set_from_integer(1, &one);
mp_set_from_integer(-1, &minus_one);
-
+
try("mp_is_zero(-1)", mp_is_zero(&minus_one), false);
try("mp_is_zero(0)", mp_is_zero(&zero), true);
try("mp_is_zero(1)", mp_is_zero(&one), false);
@@ -183,17 +183,17 @@ test_mp()
try("mp_is_equal(1, 0)", mp_is_equal(&one, &zero), false);
try("mp_is_equal(1, 1)", mp_is_equal(&one, &one), true);
- try("mp_is_greater_than(0, -1)", mp_is_greater_than (&zero, &minus_one), true);
+ try("mp_is_greater_than(0, -1)", mp_is_greater_than (&zero, &minus_one), true);
try("mp_is_greater_than(0, 0)", mp_is_greater_than (&zero, &zero), false);
try("mp_is_greater_than(0, 1)", mp_is_greater_than (&zero, &one), false);
- try("mp_is_greater_than(1, -1)", mp_is_greater_than (&one, &minus_one), true);
+ try("mp_is_greater_than(1, -1)", mp_is_greater_than (&one, &minus_one), true);
try("mp_is_greater_than(1, 0)", mp_is_greater_than (&one, &zero), true);
try("mp_is_greater_than(1, 1)", mp_is_greater_than (&one, &one), false);
- try("mp_is_greater_than(-1, -1)", mp_is_greater_than (&minus_one, &minus_one), false);
+ try("mp_is_greater_than(-1, -1)", mp_is_greater_than (&minus_one, &minus_one), false);
try("mp_is_greater_than(-1, 0)", mp_is_greater_than (&minus_one, &zero), false);
try("mp_is_greater_than(-1, 1)", mp_is_greater_than (&minus_one, &one), false);
- try("mp_is_greater_equal(0, -1)", mp_is_greater_equal (&zero, &minus_one), true);
+ try("mp_is_greater_equal(0, -1)", mp_is_greater_equal (&zero, &minus_one), true);
try("mp_is_greater_equal(0, 0)", mp_is_greater_equal (&zero, &zero), true);
try("mp_is_greater_equal(0, 1)", mp_is_greater_equal (&zero, &one), false);
try("mp_is_greater_equal(1, -1)", mp_is_greater_equal (&one, &minus_one), true);
@@ -203,23 +203,23 @@ test_mp()
try("mp_is_greater_equal(-1, 0)", mp_is_greater_equal (&minus_one, &zero), false);
try("mp_is_greater_equal(-1, 1)", mp_is_greater_equal (&minus_one, &one), false);
- try("mp_is_less_than(0, -1)", mp_is_less_than (&zero, &minus_one), false);
+ try("mp_is_less_than(0, -1)", mp_is_less_than (&zero, &minus_one), false);
try("mp_is_less_than(0, 0)", mp_is_less_than (&zero, &zero), false);
try("mp_is_less_than(0, 1)", mp_is_less_than (&zero, &one), true);
- try("mp_is_less_than(1, -1)", mp_is_less_than (&one, &minus_one), false);
+ try("mp_is_less_than(1, -1)", mp_is_less_than (&one, &minus_one), false);
try("mp_is_less_than(1, 0)", mp_is_less_than (&one, &zero), false);
try("mp_is_less_than(1, 1)", mp_is_less_than (&one, &one), false);
- try("mp_is_less_than(-1, -1)", mp_is_less_than (&minus_one, &minus_one), false);
+ try("mp_is_less_than(-1, -1)", mp_is_less_than (&minus_one, &minus_one), false);
try("mp_is_less_than(-1, 0)", mp_is_less_than (&minus_one, &zero), true);
try("mp_is_less_than(-1, 1)", mp_is_less_than (&minus_one, &one), true);
- try("mp_is_less_equal(0, -1)", mp_is_less_equal (&zero, &minus_one), false);
+ try("mp_is_less_equal(0, -1)", mp_is_less_equal (&zero, &minus_one), false);
try("mp_is_less_equal(0, 0)", mp_is_less_equal (&zero, &zero), true);
try("mp_is_less_equal(0, 1)", mp_is_less_equal (&zero, &one), true);
- try("mp_is_less_equal(1, -1)", mp_is_less_equal (&one, &minus_one), false);
+ try("mp_is_less_equal(1, -1)", mp_is_less_equal (&one, &minus_one), false);
try("mp_is_less_equal(1, 0)", mp_is_less_equal (&one, &zero), false);
try("mp_is_less_equal(1, 1)", mp_is_less_equal (&one, &one), true);
- try("mp_is_less_equal(-1, -1)", mp_is_less_equal (&minus_one, &minus_one), true);
+ try("mp_is_less_equal(-1, -1)", mp_is_less_equal (&minus_one, &minus_one), true);
try("mp_is_less_equal(-1, 0)", mp_is_less_equal (&minus_one, &zero), true);
try("mp_is_less_equal(-1, 1)", mp_is_less_equal (&minus_one, &one), true);
}