Skip to content

Commit

Permalink
Update hello-world (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
Theodus authored Feb 20, 2017
1 parent e9def30 commit 06cbe7f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"slug": "hello-world",
"difficulty": 1,
"topics": [
"strings",
"default arguments"
"primitives",
"methods"
]
},
{
Expand Down
3 changes: 1 addition & 2 deletions exercises/hello-world/example.pony
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
primitive HelloWorld
fun hello(name: String = "World"): String =>
"Hello, " + name + "!"
fun hello(): String => "Hello, World!"
1 change: 0 additions & 1 deletion exercises/hello-world/test.pony
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,3 @@ class iso _TestHelloWorld is UnitTest

fun apply(h: TestHelper) =>
h.assert_eq[String]("Hello, World!", HelloWorld.hello())
h.assert_eq[String]("Hello, Exercism!", HelloWorld.hello("Exercism"))

0 comments on commit 06cbe7f

Please sign in to comment.