From 06cbe7f552a56e887f912c0dfe2745b72a1a9363 Mon Sep 17 00:00:00 2001 From: Theo Butler Date: Mon, 20 Feb 2017 14:52:22 -0500 Subject: [PATCH] Update hello-world (#36) --- config.json | 4 ++-- exercises/hello-world/example.pony | 3 +-- exercises/hello-world/test.pony | 1 - 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/config.json b/config.json index f5c4f68..bcdc601 100644 --- a/config.json +++ b/config.json @@ -13,8 +13,8 @@ "slug": "hello-world", "difficulty": 1, "topics": [ - "strings", - "default arguments" + "primitives", + "methods" ] }, { diff --git a/exercises/hello-world/example.pony b/exercises/hello-world/example.pony index 36adf30..bfe73a4 100644 --- a/exercises/hello-world/example.pony +++ b/exercises/hello-world/example.pony @@ -1,3 +1,2 @@ primitive HelloWorld - fun hello(name: String = "World"): String => - "Hello, " + name + "!" + fun hello(): String => "Hello, World!" diff --git a/exercises/hello-world/test.pony b/exercises/hello-world/test.pony index 5e36ee8..dc56214 100644 --- a/exercises/hello-world/test.pony +++ b/exercises/hello-world/test.pony @@ -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"))