Skip to content

Commit 6fa127b

Browse files
committed
add testcase for #67
1 parent 5bb73c6 commit 6fa127b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

demo/demo.c

+9
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,15 @@ int main(void)
229229
return EXIT_FAILURE;
230230
}
231231

232+
mp_set_int(&a, 42);
233+
mp_set_int(&b, 1);
234+
mp_neg(&b, &b);
235+
mp_set_int(&c, 1);
236+
mp_exptmod(&a, &b, &c, &d);
237+
238+
mp_set_int(&c, 7);
239+
mp_exptmod(&a, &b, &c, &d);
240+
232241

233242
mp_set_int(&a, 0);
234243
mp_set_int(&b, 1);

0 commit comments

Comments
 (0)