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