Sha256: 56b1d623d21821a1a10d8a98ff4f0fb1945629b56b6f2d9d12ebe538faef8d81

Contents?: true

Size: 1.25 KB

Versions: 116

Compression:

Stored size: 1.25 KB

Contents

-module(sum_of_multiples_tests).

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

sum_with_3_5_to_1_test() ->
  ?assertEqual(0, sum_of_multiples:sumOfMultiples([3, 5], 1)).

sum_with_3_5_to_3_test() ->
  ?assertEqual(3, sum_of_multiples:sumOfMultiples([3, 5], 4)).

sum_with_3_5_to_10_test() ->
  ?assertEqual(23, sum_of_multiples:sumOfMultiples([3, 5], 10)).

sum_with_3_5_to_100_test() ->
  ?assertEqual(2318, sum_of_multiples:sumOfMultiples([3, 5], 100)).

sum_with_3_5_to_1000_test() ->
  ?assertEqual(233168, sum_of_multiples:sumOfMultiples([3, 5], 1000)).

sum_with_7_13_17_to_20_test() ->
  ?assertEqual(51, sum_of_multiples:sumOfMultiples([7,13,17], 20)).

sum_with_4_6_to_15_test() ->
?assertEqual(30, sum_of_multiples:sumOfMultiples([4,6], 15)).

sum_with_5_6_8_to_150_test() ->
?assertEqual(4419, sum_of_multiples:sumOfMultiples([5, 6, 8], 150)).

sum_with_43_47_to_10000_test() ->
  ?assertEqual(2203160, sum_of_multiples:sumOfMultiples([43,47], 10000)).

sum_with_1_to_100_test() ->
  ?assertEqual(4950, sum_of_multiples:sumOfMultiples([1], 100)).

sum_with_empty_to_10000_test() ->
  ?assertEqual(0, sum_of_multiples:sumOfMultiples([], 10000)).

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

Version data entries

116 entries across 116 versions & 1 rubygems

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