]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
next-prime tests: Add more tests.
authorBruno Haible <bruno@clisp.org>
Sat, 17 May 2025 09:09:58 +0000 (11:09 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 17 May 2025 09:09:58 +0000 (11:09 +0200)
* tests/test-next-prime.c (main): Add another test case.

ChangeLog
tests/test-next-prime.c

index 39681ca16a45f3a807a9431973ab1fd7faa23a3e..a1937a67729a6a54a457bf6f3b5f036f7beb0f90 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2025-05-17  Bruno Haible  <bruno@clisp.org>
+
+       next-prime tests: Add more tests.
+       * tests/test-next-prime.c (main): Add another test case.
+
 2025-05-17  Bruno Haible  <bruno@clisp.org>
 
        clean-temp: Fix typo in comment.
index 4a6a25e0546ba79a444f9a086c62f90c2599b17a..5bec1e0eeb73504c30efd168e2d8201bd49b2086 100644 (file)
@@ -34,6 +34,8 @@ main ()
   ASSERT (next_prime (12) == 13);
   ASSERT (next_prime (640) == 641);
 
+  ASSERT (next_prime (8647) == 8647);
+
   ASSERT (next_prime (9551) == 9551);
   ASSERT (next_prime (9552) == 9587);