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 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" } diff --git a/exercises/practice/hello-world/HelloWorldTest.php b/exercises/practice/hello-world/HelloWorldTest.php index 56434a43..1fe15e60 100644 --- a/exercises/practice/hello-world/HelloWorldTest.php +++ b/exercises/practice/hello-world/HelloWorldTest.php @@ -1,30 +1,9 @@ . - * - * To disable strict typing, comment out the directive below. - */ - declare(strict_types=1); use PHPUnit\Framework\TestCase; +use PHPUnit\Framework\Attributes\TestDox; class HelloWorldTest extends TestCase { @@ -33,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());