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

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