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.139 tracks/lfe/exercises/sum-of-multiples/test/sum-of-multiples-tests.lfe
trackler-2.2.1.138 tracks/lfe/exercises/sum-of-multiples/test/sum-of-multiples-tests.lfe
trackler-2.2.1.137 tracks/lfe/exercises/sum-of-multiples/test/sum-of-multiples-tests.lfe
trackler-2.2.1.136 tracks/lfe/exercises/sum-of-multiples/test/sum-of-multiples-tests.lfe
trackler-2.2.1.135 tracks/lfe/exercises/sum-of-multiples/test/sum-of-multiples-tests.lfe
trackler-2.2.1.134 tracks/lfe/exercises/sum-of-multiples/test/sum-of-multiples-tests.lfe
trackler-2.2.1.133 tracks/lfe/exercises/sum-of-multiples/test/sum-of-multiples-tests.lfe
trackler-2.2.1.132 tracks/lfe/exercises/sum-of-multiples/test/sum-of-multiples-tests.lfe
trackler-2.2.1.131 tracks/lfe/exercises/sum-of-multiples/test/sum-of-multiples-tests.lfe
trackler-2.2.1.130 tracks/lfe/exercises/sum-of-multiples/test/sum-of-multiples-tests.lfe
trackler-2.2.1.129 tracks/lfe/exercises/sum-of-multiples/test/sum-of-multiples-tests.lfe
trackler-2.2.1.128 tracks/lfe/exercises/sum-of-multiples/test/sum-of-multiples-tests.lfe
trackler-2.2.1.127 tracks/lfe/exercises/sum-of-multiples/test/sum-of-multiples-tests.lfe
trackler-2.2.1.126 tracks/lfe/exercises/sum-of-multiples/test/sum-of-multiples-tests.lfe
trackler-2.2.1.125 tracks/lfe/exercises/sum-of-multiples/test/sum-of-multiples-tests.lfe
trackler-2.2.1.124 tracks/lfe/exercises/sum-of-multiples/test/sum-of-multiples-tests.lfe
trackler-2.2.1.123 tracks/lfe/exercises/sum-of-multiples/test/sum-of-multiples-tests.lfe
trackler-2.2.1.122 tracks/lfe/exercises/sum-of-multiples/test/sum-of-multiples-tests.lfe
trackler-2.2.1.121 tracks/lfe/exercises/sum-of-multiples/test/sum-of-multiples-tests.lfe
trackler-2.2.1.120 tracks/lfe/exercises/sum-of-multiples/test/sum-of-multiples-tests.lfe