We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e90b44 commit 537dd2bCopy full SHA for 537dd2b
1 file changed
demo/test.c
@@ -1930,6 +1930,12 @@ static int test_mp_root_n(void)
1930
EXPECT(mp_cmp(&r, &c) == MP_EQ);
1931
}
1932
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
1939
mp_clear_multi(&a, &c, &r, NULL);
1940
return EXIT_SUCCESS;
1941
LBL_ERR:
0 commit comments