Sha256: 41da776ff852fa580b10537b4e4ca010ed6d5a4b978e90caf634c0b6408516c6

Contents?: true

Size: 1 KB

Versions: 116

Compression:

Stored size: 1 KB

Contents

-module(isogram_tests).

-include_lib("erl_exercism/include/exercism.hrl").
-include_lib("eunit/include/eunit.hrl").

empty_string_test() ->
    ?assert(isogram:is_isogram("")).

isogram_with_only_lower_case_characters_test() ->
    ?assert(isogram:is_isogram("isogram")).

word_with_one_duplicated_character_test() ->
    ?assertNot(isogram:is_isogram("eleven")).

longest_reported_english_isogram_test() ->
    ?assert(isogram:is_isogram("subdermatoglyphic")).

word_with_duplicated_character_in_mixed_case_test() ->
    ?assertNot(isogram:is_isogram("Alphabet")).

hypothetical_isogrammic_word_with_hyphen_test() ->
    ?assert(isogram:is_isogram("thumbscrew-japingly")).

isogram_with_duplicated_hyphen_test() ->
    ?assert(isogram:is_isogram("six-year-old")).

made_up_name_that_is_an_isogram_test() ->
    ?assert(isogram:is_isogram("Emily Jung Schwartzkopf")).

duplicated_character_in_the_middle_test() ->
    ?assertNot(isogram:is_isogram("accentor")).

version_test() ->
  ?assertMatch(1, isogram:test_version()).

Version data entries

116 entries across 116 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/erlang/exercises/isogram/test/isogram_tests.erl
trackler-2.2.1.179 tracks/erlang/exercises/isogram/test/isogram_tests.erl
trackler-2.2.1.178 tracks/erlang/exercises/isogram/test/isogram_tests.erl
trackler-2.2.1.177 tracks/erlang/exercises/isogram/test/isogram_tests.erl
trackler-2.2.1.176 tracks/erlang/exercises/isogram/test/isogram_tests.erl
trackler-2.2.1.175 tracks/erlang/exercises/isogram/test/isogram_tests.erl
trackler-2.2.1.174 tracks/erlang/exercises/isogram/test/isogram_tests.erl
trackler-2.2.1.173 tracks/erlang/exercises/isogram/test/isogram_tests.erl
trackler-2.2.1.172 tracks/erlang/exercises/isogram/test/isogram_tests.erl
trackler-2.2.1.171 tracks/erlang/exercises/isogram/test/isogram_tests.erl
trackler-2.2.1.170 tracks/erlang/exercises/isogram/test/isogram_tests.erl
trackler-2.2.1.169 tracks/erlang/exercises/isogram/test/isogram_tests.erl
trackler-2.2.1.167 tracks/erlang/exercises/isogram/test/isogram_tests.erl
trackler-2.2.1.166 tracks/erlang/exercises/isogram/test/isogram_tests.erl
trackler-2.2.1.165 tracks/erlang/exercises/isogram/test/isogram_tests.erl
trackler-2.2.1.164 tracks/erlang/exercises/isogram/test/isogram_tests.erl
trackler-2.2.1.163 tracks/erlang/exercises/isogram/test/isogram_tests.erl
trackler-2.2.1.162 tracks/erlang/exercises/isogram/test/isogram_tests.erl
trackler-2.2.1.161 tracks/erlang/exercises/isogram/test/isogram_tests.erl
trackler-2.2.1.160 tracks/erlang/exercises/isogram/test/isogram_tests.erl