reg. #143 added test to demo.c
diff --git a/demo/demo.c b/demo/demo.c
index a93ce1d..0aeae25 100644
--- a/demo/demo.c
+++ b/demo/demo.c
@@ -715,6 +715,16 @@ int main(void)
return EXIT_FAILURE;
}
}
+ /* Check regarding problem #143 */
+#ifndef MP_8BIT
+ mp_read_radix(&a, "FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD129024E088A67CC74020BBEA63B139B22514A08798E3404DDEF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245E485B576625E7EC6F44C42E9A63A3620FFFFFFFFFFFFFFFF",
+ 16);
+ mp_prime_strong_lucas_selfridge(&a, &cnt);
+ if (cnt != MP_YES) {
+ printf("\n\nissue #143 - mp_prime_strong_lucas_selfridge FAILED!\n");
+ return EXIT_FAILURE;
+ }
+#endif
printf("\n\n");