From 50b05cf884d685dae748a143fa057b8c770cfe31 Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Mon, 3 Apr 2006 18:11:56 +0000 Subject: [PATCH] add test for gmp_nextprime() --- ext/gmp/tests/gmp_nextprime.phpt | 40 ++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 ext/gmp/tests/gmp_nextprime.phpt diff --git a/ext/gmp/tests/gmp_nextprime.phpt b/ext/gmp/tests/gmp_nextprime.phpt new file mode 100644 index 0000000000..84d945b3fc --- /dev/null +++ b/ext/gmp/tests/gmp_nextprime.phpt @@ -0,0 +1,40 @@ +--TEST-- +gmp_nextprime() +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +string(1) "2" +string(1) "2" +string(4) "-997" +string(4) "1009" +string(6) "100003" + +Warning: gmp_nextprime(): Unable to convert variable to GMP - wrong type in %s on line %d +string(1) "0" +string(1) "0" + +Warning: gmp_nextprime(): Unable to convert variable to GMP - wrong type in %s on line %d +string(1) "0" +Done -- 2.50.1