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.62 tracks/erlang/exercises/sum-of-multiples/test/sum_of_multiples_tests.erl
trackler-2.2.1.61 tracks/erlang/exercises/sum-of-multiples/test/sum_of_multiples_tests.erl
trackler-2.2.1.60 tracks/erlang/exercises/sum-of-multiples/test/sum_of_multiples_tests.erl
trackler-2.2.1.59 tracks/erlang/exercises/sum-of-multiples/test/sum_of_multiples_tests.erl
trackler-2.2.1.58 tracks/erlang/exercises/sum-of-multiples/test/sum_of_multiples_tests.erl
trackler-2.2.1.57 tracks/erlang/exercises/sum-of-multiples/test/sum_of_multiples_tests.erl
trackler-2.2.1.56 tracks/erlang/exercises/sum-of-multiples/test/sum_of_multiples_tests.erl
trackler-2.2.1.55 tracks/erlang/exercises/sum-of-multiples/test/sum_of_multiples_tests.erl
trackler-2.2.1.54 tracks/erlang/exercises/sum-of-multiples/test/sum_of_multiples_tests.erl
trackler-2.2.1.53 tracks/erlang/exercises/sum-of-multiples/test/sum_of_multiples_tests.erl
trackler-2.2.1.52 tracks/erlang/exercises/sum-of-multiples/test/sum_of_multiples_tests.erl
trackler-2.2.1.51 tracks/erlang/exercises/sum-of-multiples/test/sum_of_multiples_tests.erl
trackler-2.2.1.50 tracks/erlang/exercises/sum-of-multiples/test/sum_of_multiples_tests.erl
trackler-2.2.1.49 tracks/erlang/exercises/sum-of-multiples/test/sum_of_multiples_tests.erl
trackler-2.2.1.48 tracks/erlang/exercises/sum-of-multiples/test/sum_of_multiples_tests.erl
trackler-2.2.1.47 tracks/erlang/exercises/sum-of-multiples/test/sum_of_multiples_tests.erl
trackler-2.2.1.46 tracks/erlang/exercises/sum-of-multiples/test/sum_of_multiples_tests.erl
trackler-2.2.1.45 tracks/erlang/exercises/sum-of-multiples/test/sum_of_multiples_tests.erl
trackler-2.2.1.44 tracks/erlang/exercises/sum-of-multiples/test/sum_of_multiples_tests.erl
trackler-2.2.1.43 tracks/erlang/exercises/sum-of-multiples/test/sum_of_multiples_tests.erl