From 1e90accef63990061e24e384ff390d520a523673 Mon Sep 17 00:00:00 2001 From: Steffen Jaeckel Date: Sun, 27 Mar 2011 19:34:36 +0200 Subject: [PATCH] added testcase of problem reported by martins.mozeiko@gmail.com --- demo/test.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/demo/test.c b/demo/test.c index c8b9def..15ed183 100644 --- a/demo/test.c +++ b/demo/test.c @@ -134,6 +134,10 @@ int main(void) printf("cmp returns: %d, ", fp_cmp(&a, &b)); fp_sub(&a, &b, &a); draw(&a); printf("cmp returns: %d, ", fp_cmp(&a, &b)); fp_sub(&a, &b, &a); draw(&a); printf("cmp returns: %d, ", fp_cmp(&a, &b)); fp_sub(&a, &b, &a); draw(&a); + fp_read_radix(&a, "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000000000000000000001", 16); draw(&a); + fp_sub_d(&a, 3, &b); draw(&b); + fp_read_radix(&a, "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFE", 16); + printf("cmp returns: %d, ", fp_cmp(&a, &b)); fp_sub(&a, &b, &a); draw(&a); /* test mul_d */ printf("Testing mul_d and div_d\n");