From 34e6b9dad03025dd2a93771d59a7a7dbe9288234 Mon Sep 17 00:00:00 2001 From: Michael Kramer Date: Sun, 10 Aug 2025 13:55:36 +0200 Subject: [PATCH 1/4] Sync using configlet --- exercises/practice/hello-world/.docs/instructions.md | 11 ++++++----- exercises/practice/hello-world/.meta/config.json | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/exercises/practice/hello-world/.docs/instructions.md b/exercises/practice/hello-world/.docs/instructions.md index 041075ae..c9570e48 100644 --- a/exercises/practice/hello-world/.docs/instructions.md +++ b/exercises/practice/hello-world/.docs/instructions.md @@ -1,15 +1,16 @@ # Instructions -The classical introductory exercise. Just say "Hello, World!". +The classical introductory exercise. +Just say "Hello, World!". -["Hello, World!"](https://en.wikipedia.org/wiki/%22Hello,_world!%22_program) is -the traditional first program for beginning programming in a new language -or environment. +["Hello, World!"][hello-world] is the traditional first program for beginning programming in a new language or environment. The objectives are simple: -- Write a function that returns the string "Hello, World!". +- Modify the provided code so that it produces the string "Hello, World!". - Run the test suite and make sure that it succeeds. - Submit your solution and check it at the website. If everything goes well, you will be ready to fetch your first real exercise. + +[hello-world]: https://en.wikipedia.org/wiki/%22Hello,_world!%22_program diff --git a/exercises/practice/hello-world/.meta/config.json b/exercises/practice/hello-world/.meta/config.json index 9540247f..c6063829 100644 --- a/exercises/practice/hello-world/.meta/config.json +++ b/exercises/practice/hello-world/.meta/config.json @@ -19,7 +19,7 @@ ".meta/example.php" ] }, - "blurb": "The classical introductory exercise. Just say \"Hello, World!\"", + "blurb": "Exercism's classic introductory exercise. Just say \"Hello, World!\".", "source": "This is an exercise to introduce users to using Exercism", "source_url": "https://en.wikipedia.org/wiki/%22Hello,_world!%22_program" } From 0f8fbe112f6e16268f6dc155736edc72df306b14 Mon Sep 17 00:00:00 2001 From: Michael Kramer Date: Sun, 10 Aug 2025 14:01:08 +0200 Subject: [PATCH 2/4] Drop strict types comments --- .../practice/hello-world/HelloWorldTest.php | 22 ------------------- 1 file changed, 22 deletions(-) diff --git a/exercises/practice/hello-world/HelloWorldTest.php b/exercises/practice/hello-world/HelloWorldTest.php index 56434a43..f828b7cc 100644 --- a/exercises/practice/hello-world/HelloWorldTest.php +++ b/exercises/practice/hello-world/HelloWorldTest.php @@ -1,27 +1,5 @@ . - * - * To disable strict typing, comment out the directive below. - */ - declare(strict_types=1); use PHPUnit\Framework\TestCase; From 094c1b18c3505f9f8f38384e80dcf02d786bb5fb Mon Sep 17 00:00:00 2001 From: Michael Kramer Date: Sun, 10 Aug 2025 14:01:25 +0200 Subject: [PATCH 3/4] Add and sync test meta data to tests --- exercises/practice/hello-world/HelloWorldTest.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/exercises/practice/hello-world/HelloWorldTest.php b/exercises/practice/hello-world/HelloWorldTest.php index f828b7cc..1fe15e60 100644 --- a/exercises/practice/hello-world/HelloWorldTest.php +++ b/exercises/practice/hello-world/HelloWorldTest.php @@ -3,6 +3,7 @@ declare(strict_types=1); use PHPUnit\Framework\TestCase; +use PHPUnit\Framework\Attributes\TestDox; class HelloWorldTest extends TestCase { @@ -11,6 +12,10 @@ public static function setUpBeforeClass(): void require_once 'HelloWorld.php'; } + /** + * uuid: af9ffe10-dc13-42d8-a742-e7bdafac449d + */ + #[TestDox('Say Hi!')] public function testHelloWorld(): void { $this->assertEquals('Hello, World!', helloWorld()); From 894fcfe2a701de5053458e2f5b0f1bcacb3f2a0e Mon Sep 17 00:00:00 2001 From: Michael Kramer Date: Sun, 10 Aug 2025 14:04:33 +0200 Subject: [PATCH 4/4] Add exercise to `bin/auto-sync.txt` --- bin/auto-sync.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/auto-sync.txt b/bin/auto-sync.txt index 9b44ff71..e1eb7ea6 100644 --- a/bin/auto-sync.txt +++ b/bin/auto-sync.txt @@ -28,6 +28,7 @@ flower-field food-chain grade-school hamming +hello-world house isbn-verifier isogram