Sha256: 5605c78e32e5f1300205cabb0f543ecc68447c874461b22e10f05a44b1acdac5

Contents?: true

Size: 1.16 KB

Versions: 194

Compression:

Stored size: 1.16 KB

Contents

-module(sum_of_multiples_tests).

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


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

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

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

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

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

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

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

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

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

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

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

Version data entries

194 entries across 194 versions & 1 rubygems

Version Path
trackler-2.2.1.42 tracks/erlang/exercises/sum-of-multiples/test/sum_of_multiples_tests.erl
trackler-2.2.1.41 tracks/erlang/exercises/sum-of-multiples/test/sum_of_multiples_tests.erl
trackler-2.2.1.40 tracks/erlang/exercises/sum-of-multiples/test/sum_of_multiples_tests.erl
trackler-2.2.1.39 tracks/erlang/exercises/sum-of-multiples/test/sum_of_multiples_tests.erl
trackler-2.2.1.38 tracks/erlang/exercises/sum-of-multiples/test/sum_of_multiples_tests.erl
trackler-2.2.1.37 tracks/erlang/exercises/sum-of-multiples/test/sum_of_multiples_tests.erl
trackler-2.2.1.36 tracks/erlang/exercises/sum-of-multiples/test/sum_of_multiples_tests.erl
trackler-2.2.1.35 tracks/erlang/exercises/sum-of-multiples/test/sum_of_multiples_tests.erl
trackler-2.2.1.34 tracks/erlang/exercises/sum-of-multiples/test/sum_of_multiples_tests.erl
trackler-2.2.1.33 tracks/erlang/exercises/sum-of-multiples/test/sum_of_multiples_tests.erl
trackler-2.2.1.32 tracks/erlang/exercises/sum-of-multiples/test/sum_of_multiples_tests.erl
trackler-2.2.1.31 tracks/erlang/exercises/sum-of-multiples/test/sum_of_multiples_tests.erl
trackler-2.2.1.30 tracks/erlang/exercises/sum-of-multiples/test/sum_of_multiples_tests.erl
trackler-2.2.1.29 tracks/erlang/exercises/sum-of-multiples/test/sum_of_multiples_tests.erl
trackler-2.2.1.28 tracks/erlang/exercises/sum-of-multiples/test/sum_of_multiples_tests.erl
trackler-2.2.1.27 tracks/erlang/exercises/sum-of-multiples/test/sum_of_multiples_tests.erl
trackler-2.2.1.26 tracks/erlang/exercises/sum-of-multiples/test/sum_of_multiples_tests.erl
trackler-2.2.1.25 tracks/erlang/exercises/sum-of-multiples/test/sum_of_multiples_tests.erl
trackler-2.2.1.24 tracks/erlang/exercises/sum-of-multiples/test/sum_of_multiples_tests.erl
trackler-2.2.1.23 tracks/erlang/exercises/sum-of-multiples/test/sum_of_multiples_tests.erl