Sha256: 0e2ede1a9382770485bb553612e7ee9f4dd57310d22c0422dbc5e45486eba572
Contents?: true
Size: 1.21 KB
Versions: 396
Compression:
Stored size: 1.21 KB
Contents
(defmodule sum-of-multiples-tests (behaviour ltest-unit) (export all)) (include-lib "ltest/include/ltest-macros.lfe") (deftest sum-to-1 (is-equal 0 (sum-of-multiples:sum-of-multiples '(3 5) 1))) (deftest sum-to-4 (is-equal 3 (sum-of-multiples:sum-of-multiples '(3 5) 4))) (deftest sum-to-10 (is-equal 23 (sum-of-multiples:sum-of-multiples '(3 5) 10))) (deftest sum-to-100 (is-equal 2318 (sum-of-multiples:sum-of-multiples '(3 5) 100))) (deftest sum-to-1000 (is-equal 233168 (sum-of-multiples:sum-of-multiples '(3 5) 1000))) (deftest sum-to-20-using-7-13-17 (is-equal 51 (sum-of-multiples:sum-of-multiples '(7 13 17) 20))) (deftest sum-to-15-using-4-6 (is-equal 30 (sum-of-multiples:sum-of-multiples '(4 6) 15))) (deftest sum-to-150-using-5-6-8 (is-equal 4419 (sum-of-multiples:sum-of-multiples '(5 6 8) 150))) (deftest sum-to-51-using-5-25 (is-equal 275 (sum-of-multiples:sum-of-multiples '(5 25) 51))) (deftest sum-to-10_000-using-43-47 (is-equal 2203160 (sum-of-multiples:sum-of-multiples '(43 47) 10000))) (deftest sum-to-100-using-1 (is-equal 4950 (sum-of-multiples:sum-of-multiples '(1) 100))) (deftest sum-to-10_000-using-empty (is-equal 0 (sum-of-multiples:sum-of-multiples () 10000)))
Version data entries
396 entries across 396 versions & 1 rubygems