fix testcase with new 1e-10 logic
This commit is contained in:
parent
a80d94ea07
commit
c583d0a8b4
@ -56,7 +56,7 @@ main(int argc,
|
|||||||
&a1));
|
&a1));
|
||||||
/* precision too high */
|
/* precision too high */
|
||||||
GNUNET_assert (GNUNET_SYSERR ==
|
GNUNET_assert (GNUNET_SYSERR ==
|
||||||
TALER_string_to_amount ("EUR:4.1234567",
|
TALER_string_to_amount ("EUR:4.123456789",
|
||||||
&a1));
|
&a1));
|
||||||
/* value too big */
|
/* value too big */
|
||||||
GNUNET_assert (GNUNET_SYSERR ==
|
GNUNET_assert (GNUNET_SYSERR ==
|
||||||
@ -168,7 +168,7 @@ main(int argc,
|
|||||||
GNUNET_assert (GNUNET_YES ==
|
GNUNET_assert (GNUNET_YES ==
|
||||||
TALER_amount_normalize (&a3));
|
TALER_amount_normalize (&a3));
|
||||||
c = TALER_amount_to_string (&a3);
|
c = TALER_amount_to_string (&a3);
|
||||||
GNUNET_assert (0 == strcmp ("EUR:6.000001",
|
GNUNET_assert (0 == strcmp ("EUR:6.00000001",
|
||||||
c));
|
c));
|
||||||
GNUNET_free (c);
|
GNUNET_free (c);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user