From d1f77826981fc4b47ad86ef76e8bbe0ca07acd78 Mon Sep 17 00:00:00 2001 From: ee7 <45465154+ee7@users.noreply.github.com> Date: Thu, 7 Feb 2019 20:00:15 +0100 Subject: [PATCH] hello-world: Update tests and example to 1.1.0 --- exercises/hello-world/example.nim | 4 ++-- exercises/hello-world/hello_world_test.nim | 14 ++++---------- 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/exercises/hello-world/example.nim b/exercises/hello-world/example.nim index 547027d5..7371ac91 100644 --- a/exercises/hello-world/example.nim +++ b/exercises/hello-world/example.nim @@ -1,2 +1,2 @@ -proc helloworld*(name="World"): string = - return "Hello, " & name & "!" +proc hello*: string = + "Hello, World!" diff --git a/exercises/hello-world/hello_world_test.nim b/exercises/hello-world/hello_world_test.nim index 50d57448..1502b121 100644 --- a/exercises/hello-world/hello_world_test.nim +++ b/exercises/hello-world/hello_world_test.nim @@ -1,14 +1,8 @@ import unittest +import hello_world -import helloworld +# version 1.1.0 suite "Hello World": - - test "no name": - check helloworld() == "Hello, World!" - - test "sample name": - check helloworld("Alice") == "Hello, Alice!" - - test "other sample name": - check helloworld("Bob") == "Hello, Bob!" + test "say hi": + check hello() == "Hello, World!"