Sha256: 9613166533a53b0ffa963fcee2ba1a372a4f0558f440891f06f789319790f4cf

Contents?: true

Size: 478 Bytes

Versions: 174

Compression:

Stored size: 478 Bytes

Contents

-module(luhn_tests).

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


invalid_test() ->
  ?assertNot(?TESTED_MODULE:valid("1111")),
  ?assertNot(?TESTED_MODULE:valid("738")).

valid_test() ->
  ?assert(?TESTED_MODULE:valid("8739567")),
  ?assert(?TESTED_MODULE:valid("8763")),
  ?assert(?TESTED_MODULE:valid("2323 2005 7766 3554")).

create_test() ->
  ?assertEqual("2323 2005 7766 3554", ?TESTED_MODULE:create("2323 2005 7766 355")).

Version data entries

174 entries across 174 versions & 1 rubygems

Version Path
trackler-2.2.1.2 tracks/erlang/exercises/luhn/test/luhn_tests.erl
trackler-2.2.1.1 tracks/erlang/exercises/luhn/test/luhn_tests.erl
trackler-2.2.1.0 tracks/erlang/exercises/luhn/test/luhn_tests.erl
trackler-2.2.0.6 tracks/erlang/exercises/luhn/test/luhn_tests.erl
trackler-2.2.0.5 tracks/erlang/exercises/luhn/test/luhn_tests.erl
trackler-2.2.0.4 tracks/erlang/exercises/luhn/test/luhn_tests.erl
trackler-2.2.0.3 tracks/erlang/exercises/luhn/test/luhn_tests.erl
trackler-2.2.0.2 tracks/erlang/exercises/luhn/test/luhn_tests.erl
trackler-2.2.0.1 tracks/erlang/exercises/luhn/test/luhn_tests.erl
trackler-2.2.0.0 tracks/erlang/exercises/luhn/test/luhn_tests.erl
trackler-2.1.0.55 tracks/erlang/exercises/luhn/test/luhn_tests.erl
trackler-2.1.0.54 tracks/erlang/exercises/luhn/test/luhn_tests.erl
trackler-2.1.0.53 tracks/erlang/exercises/luhn/test/luhn_tests.erl
trackler-2.1.0.52 tracks/erlang/exercises/luhn/test/luhn_tests.erl
trackler-2.1.0.51 tracks/erlang/exercises/luhn/test/luhn_tests.erl
trackler-2.1.0.50 tracks/erlang/exercises/luhn/test/luhn_tests.erl
trackler-2.1.0.49 tracks/erlang/exercises/luhn/test/luhn_tests.erl
trackler-2.1.0.48 tracks/erlang/exercises/luhn/test/luhn_tests.erl
trackler-2.1.0.47 tracks/erlang/exercises/luhn/test/luhn_tests.erl
trackler-2.1.0.46 tracks/erlang/exercises/luhn/test/luhn_tests.erl