forked from exercism/erlang
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[hello-world] update to current version of canonical data
This is in line with exercism/problem-specifications#544
- Loading branch information
Norbert Melzer
committed
Feb 20, 2017
1 parent
299d2e2
commit 635629a
Showing
2 changed files
with
7 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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()). |