From f2b50156bc7f3fbf4e3384cdcf1240bacb4310ef Mon Sep 17 00:00:00 2001 From: "Chun-Sheng, Li" Date: Thu, 30 Dec 2021 20:02:56 +0800 Subject: [PATCH] Add some more test cases for BCMath Closes GH-7851. --- ext/bcmath/tests/bcadd.phpt | 4 ++++ ext/bcmath/tests/bcadd_variation001.phpt | 8 +++++++- ext/bcmath/tests/bccomp_variation002.phpt | 8 +++++++- 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/ext/bcmath/tests/bcadd.phpt b/ext/bcmath/tests/bcadd.phpt index b24ce8dbd79..fa4be8acbe1 100644 --- a/ext/bcmath/tests/bcadd.phpt +++ b/ext/bcmath/tests/bcadd.phpt @@ -8,9 +8,13 @@ bcmath.scale=0 --EXPECT-- 3 4.0000 +-6.0000 +-4.0000 8728932003911564969352217864684.00 diff --git a/ext/bcmath/tests/bcadd_variation001.phpt b/ext/bcmath/tests/bcadd_variation001.phpt index 447958b4a2f..d6bd89b5223 100644 --- a/ext/bcmath/tests/bcadd_variation001.phpt +++ b/ext/bcmath/tests/bcadd_variation001.phpt @@ -7,10 +7,16 @@ bcmath.scale=5 --FILE-- --EXPECT-- 6.50 +6.50 +-5.1 -5.1 3.03000 +-11.57000 diff --git a/ext/bcmath/tests/bccomp_variation002.phpt b/ext/bcmath/tests/bccomp_variation002.phpt index ae7ba7fafe8..eb9655083ca 100644 --- a/ext/bcmath/tests/bccomp_variation002.phpt +++ b/ext/bcmath/tests/bccomp_variation002.phpt @@ -8,9 +8,15 @@ bcmath.scale=0 --EXPECT-- 0 -1 1 +-1 +1 +1