Sha256: d54da5e4b5b05643619e162c56022d84a985d348689cc34de2226780dc68bcb6

Contents?: true

Size: 464 Bytes

Versions: 84

Compression:

Stored size: 464 Bytes

Contents

% To run tests:
% erl -make
% erl -noshell -eval "eunit:test(hello_world, [verbose])" -s init stop
%

-module(hello_world_tests).
-include_lib("eunit/include/eunit.hrl").

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

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

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

strange_test() ->
  ?assertEqual("Hello, !", hello_world:greet("")).

Version data entries

84 entries across 84 versions & 1 rubygems

Version Path
trackler-2.0.5.7 tracks/erlang/exercises/hello-world/hello_world_tests.erl
trackler-2.0.5.6 tracks/erlang/exercises/hello-world/hello_world_tests.erl
trackler-2.0.5.5 tracks/erlang/exercises/hello-world/hello_world_tests.erl
trackler-2.0.5.4 tracks/erlang/exercises/hello-world/hello_world_tests.erl
trackler-2.0.5.3 tracks/erlang/exercises/hello-world/hello_world_tests.erl
trackler-2.0.5.2 tracks/erlang/exercises/hello-world/hello_world_tests.erl
trackler-2.0.5.1 tracks/erlang/exercises/hello-world/hello_world_tests.erl
trackler-2.0.5.0 tracks/erlang/exercises/hello-world/hello_world_tests.erl
trackler-2.0.4.0 tracks/erlang/exercises/hello-world/hello_world_tests.erl
trackler-2.0.3.9 tracks/erlang/exercises/hello-world/hello_world_tests.erl
trackler-2.0.3.8 tracks/erlang/exercises/hello-world/hello_world_tests.erl
trackler-2.0.3.7 tracks/erlang/exercises/hello-world/hello_world_tests.erl
trackler-2.0.3.6 tracks/erlang/exercises/hello-world/hello_world_tests.erl
trackler-2.0.3.5 tracks/erlang/exercises/hello-world/hello_world_tests.erl
trackler-2.0.3.4 tracks/erlang/exercises/hello-world/hello_world_tests.erl
trackler-2.0.3.3 tracks/erlang/exercises/hello-world/hello_world_tests.erl
trackler-2.0.3.2 tracks/erlang/exercises/hello-world/hello_world_tests.erl
trackler-2.0.3.1 tracks/erlang/exercises/hello-world/hello_world_tests.erl
trackler-2.0.3.0 tracks/erlang/exercises/hello-world/hello_world_tests.erl
trackler-2.0.2.0 tracks/erlang/exercises/hello-world/hello_world_tests.erl