Skip to content

Commit 537dd2b

Browse files
author
Christoph Zurnieden
committed
Added bugfix from #599
1 parent 1e90b44 commit 537dd2b

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

demo/test.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1930,6 +1930,12 @@ static int test_mp_root_n(void)
19301930
EXPECT(mp_cmp(&r, &c) == MP_EQ);
19311931
}
19321932
}
1933+
1934+
/* root^base == input with small input and base */
1935+
mp_set(&a, 4);
1936+
DO(mp_root_n(&a, 2, &c));
1937+
EXPECT(mp_cmp_d(&c, 2) == MP_EQ);
1938+
19331939
mp_clear_multi(&a, &c, &r, NULL);
19341940
return EXIT_SUCCESS;
19351941
LBL_ERR:

0 commit comments

Comments
 (0)