diff --git a/exercises/hello-world/canonical-data.json b/exercises/hello-world/canonical-data.json index a86e4b75e6..620b130721 100644 --- a/exercises/hello-world/canonical-data.json +++ b/exercises/hello-world/canonical-data.json @@ -1,14 +1,5 @@ { - "#": [ - "Language implementations vary on the issue of missing input variables.", - "In this set of test cases, the input variable is left out of the definition,", - "and the generator would need to handle the language implementation." - ], "cases": [ - { - "description": "no name", - "expected": "Hello, World!" - }, { "description": "sample name", "name": "Alice", @@ -16,8 +7,8 @@ }, { "description": "other sample name", - "name": "Bob", - "expected": "Hello, Bob!" + "name": "World", + "expected": "Hello, World!" } ] } diff --git a/exercises/hello-world/description.md b/exercises/hello-world/description.md index f0d11b5bf9..c7fc60a5ef 100644 --- a/exercises/hello-world/description.md +++ b/exercises/hello-world/description.md @@ -7,13 +7,11 @@ the traditional first program for beginning programming in a new language. ## Specification -Write a `Hello World!` function that can greet someone given their name. The -function should return the appropriate greeting. +Write a `Hello World!` function that can greet the world or a specific person. +The function should return the appropriate greeting. For an input of "Alice", the response should be "Hello, Alice!". -If a name is not given, the response should be "Hello, World!" - ## Test-Driven Development As programmers mature, they eventually want to test their code.