Add testcase for mp_add_d('0',...)

This closes #65
This commit is contained in:
Steffen Jaeckel 2016-06-02 09:52:42 +02:00
parent 62442d4f33
commit 2e1446f936
1 changed files with 6 additions and 0 deletions

View File

@ -222,6 +222,12 @@ int main(void)
if (mp_get_int(&a) != 1) {
return EXIT_FAILURE;
}
mp_zero(&a);
// a: 0-> a: 6
mp_add_d(&a, 6, &a);
if (mp_get_int(&a) != 6) {
return EXIT_FAILURE;
}
mp_set_int(&a, 0);