From f44c2003741b28c81b98ad7be594b0738c76cfd4 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Sat, 10 Oct 2020 18:54:56 +0200 Subject: [PATCH] (#20) Update brick/math requirement from ^0.8.15 to ^0.8.15 || ^0.9.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update brick/math requirement from ^0.8.15 to ^0.8.15 || ^0.9.0 Updates the requirements on [brick/math](https://github.com/brick/math) to permit the latest version. - [Release notes](https://github.com/brick/math/releases) - [Commits](https://github.com/brick/math/compare/0.8.15...0.9.0) Signed-off-by: dependabot-preview[bot] * Test: Remove new supported formats Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> Co-authored-by: Jan Barášek --- composer.json | 2 +- tests/NumbersTests/Entity/NumberTest.php | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/composer.json b/composer.json index 5e48311..142fe81 100644 --- a/composer.json +++ b/composer.json @@ -20,7 +20,7 @@ "php": ">=7.2", "ext-json": "*", "nette/utils": "^3.0", - "brick/math": "^0.8.15", + "brick/math": "^0.8.15 || ^0.9.0", "symfony/polyfill-php80": "^1.17" }, "require-dev": { diff --git a/tests/NumbersTests/Entity/NumberTest.php b/tests/NumbersTests/Entity/NumberTest.php index b5f179b..fd0d6ac 100644 --- a/tests/NumbersTests/Entity/NumberTest.php +++ b/tests/NumbersTests/Entity/NumberTest.php @@ -171,12 +171,6 @@ public function testInvalidInputs() Assert::throws(function () { return Number::of('25....'); }, NumberFormatException::class); - Assert::throws(function () { - return Number::of('4.'); - }, NumberFormatException::class); - Assert::throws(function () { - return Number::of('+4.'); - }, NumberFormatException::class); Assert::throws(function () { return Number::of('++10/2'); }, NumberFormatException::class);