From 5ac53826df796c5ec09624ba43a2eb6ed4d9e83b Mon Sep 17 00:00:00 2001 From: Michael Kramer Date: Sun, 7 Apr 2024 17:58:50 +0200 Subject: [PATCH] Order tests to match problem spec grouping --- .../DifferenceOfSquaresTest.php | 58 +++++++++---------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/exercises/practice/difference-of-squares/DifferenceOfSquaresTest.php b/exercises/practice/difference-of-squares/DifferenceOfSquaresTest.php index ab0809fa..242de942 100644 --- a/exercises/practice/difference-of-squares/DifferenceOfSquaresTest.php +++ b/exercises/practice/difference-of-squares/DifferenceOfSquaresTest.php @@ -9,6 +9,15 @@ public static function setUpBeforeClass(): void require_once 'DifferenceOfSquares.php'; } + /** + * uuid e46c542b-31fc-4506-bcae-6b62b3268537 + * @testdox Square of sum 1 + */ + public function testSquareOfSumTo1(): void + { + $this->assertEquals(1, squareOfSum(1)); + } + /** * uuid 9b3f96cb-638d-41ee-99b7-b4f9c0622948 * @testdox Square of sum 5 @@ -19,39 +28,39 @@ public function testSquareOfSumTo5(): void } /** - * uuid c93900cd-8cc2-4ca4-917b-dd3027023499 - * @testdox Sum of squares 5 + * uuid 54ba043f-3c35-4d43-86ff-3a41625d5e86 + * @testdox Square of sum 100 */ - public function testSumOfSquaresTo5(): void + public function testSquareOfSumTo100(): void { - $this->assertEquals(55, sumOfSquares(5)); + $this->assertEquals(25502500, squareOfSum(100)); } /** - * uuid 005cb2bf-a0c8-46f3-ae25-924029f8b00b - * @testdox Difference of squares 5 + * uuid 01d84507-b03e-4238-9395-dd61d03074b5 + * @testdox Sum of squares 1 */ - public function testDifferenceOfSumTo5(): void + public function testSumOfSquaresTo1(): void { - $this->assertEquals(170, difference(5)); + $this->assertEquals(1, sumOfSquares(1)); } /** - * uuid e46c542b-31fc-4506-bcae-6b62b3268537 - * @testdox Square of sum 1 + * uuid c93900cd-8cc2-4ca4-917b-dd3027023499 + * @testdox Sum of squares 5 */ - public function testSquareOfSumTo1(): void + public function testSumOfSquaresTo5(): void { - $this->assertEquals(1, squareOfSum(1)); + $this->assertEquals(55, sumOfSquares(5)); } /** - * uuid 01d84507-b03e-4238-9395-dd61d03074b5 - * @testdox Sum of squares 1 + * uuid 94807386-73e4-4d9e-8dec-69eb135b19e4 + * @testdox Sum of squares 100 */ - public function testSumOfSquaresTo1(): void + public function testSumOfSquaresTo100(): void { - $this->assertEquals(1, sumOfSquares(1)); + $this->assertEquals(338350, sumOfSquares(100)); } /** @@ -64,21 +73,12 @@ public function testDifferenceOfSumTo1(): void } /** - * uuid 54ba043f-3c35-4d43-86ff-3a41625d5e86 - * @testdox Square of sum 100 - */ - public function testSquareOfSumTo100(): void - { - $this->assertEquals(25502500, squareOfSum(100)); - } - - /** - * uuid 94807386-73e4-4d9e-8dec-69eb135b19e4 - * @testdox Sum of squares 100 + * uuid 005cb2bf-a0c8-46f3-ae25-924029f8b00b + * @testdox Difference of squares 5 */ - public function testSumOfSquaresTo100(): void + public function testDifferenceOfSumTo5(): void { - $this->assertEquals(338350, sumOfSquares(100)); + $this->assertEquals(170, difference(5)); } /**