Skip to content

Commit

Permalink
[hello-world] update to current version of canonical data
Browse files Browse the repository at this point in the history
  • Loading branch information
Norbert Melzer committed Feb 20, 2017
1 parent 299d2e2 commit 635629a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 16 deletions.
8 changes: 4 additions & 4 deletions exercises/hello-world/src/example.erl
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
-module(example).
-export([greet/0, greet/1, test_version/0]).
-export([hello/0, test_version/0]).

greet() -> "Hello, World!".
greet(Name) -> "Hello, " ++ Name ++ "!".
hello() ->
"Hello, World!".

test_version() ->
1.
2.
15 changes: 3 additions & 12 deletions exercises/hello-world/test/hello_world_tests.erl
Original file line number Diff line number Diff line change
@@ -1,18 +1,9 @@
-module(hello_world_tests).

-define(TESTED_MODULE, (sut(hello_world))).
-define(TEST_VERSION, 1).
-define(TEST_VERSION, 2).
-include("exercism.hrl").


no_name_test() ->
?assertEqual("Hello, World!", ?TESTED_MODULE:greet()).

alice_test() ->
?assertEqual("Hello, Alice!", ?TESTED_MODULE:greet("Alice")).

bob_test() ->
?assertEqual("Hello, Bob!", ?TESTED_MODULE:greet("Bob")).

strange_test() ->
?assertEqual("Hello, !", ?TESTED_MODULE:greet("")).
say_hi_test() ->
?assertEqual("Hello, World!", ?TESTED_MODULE:hello()).

0 comments on commit 635629a

Please sign in to comment.