Sha256: 17db2f24180e3e8a044673dc139fedb5b6b3ac61ee7e6d86f4965b3d0c043b28

Contents?: true

Size: 1.09 KB

Versions: 396

Compression:

Stored size: 1.09 KB

Contents

;; Load SRFI-64 lightweight testing specification
(use-modules (srfi srfi-64))

;; Suppress log file output. To write logs, comment out the following line:
(module-define! (resolve-module '(srfi srfi-64)) 'test-log-to-file #f)

;; Require module
(add-to-load-path (dirname (current-filename)))
(use-modules (squares))

(test-begin "difference-of-squares")

(test-eqv "square-of-sums-to-5"
          225
          (square-of-sums 5))
(test-eqv "sum-of-squares-to-5"
          55
          (sum-of-squares 5))
(test-eqv "difference of-sums-to-5"
          170
          (difference 5))

(test-eqv "square-of-sums-to-10"
          3025
          (square-of-sums 10))
(test-eqv "sum-of-squares-to-10"
          385
          (sum-of-squares 10))
(test-eqv "difference of-sums-to-10"
          2640
          (difference 10))

(test-eqv "square-of-sums-to-100"
          25502500
          (square-of-sums 100))
(test-eqv "sum-of-squares-to-100"
          338350
          (sum-of-squares 100))
(test-eqv "difference of-sums-to-100"
          25164150
          (difference 100))



(test-end "difference-of-squares")

Version data entries

396 entries across 396 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/scheme/exercises/difference-of-squares/difference-of-squares-test.scm
trackler-2.2.1.179 tracks/scheme/exercises/difference-of-squares/difference-of-squares-test.scm
trackler-2.2.1.178 tracks/scheme/exercises/difference-of-squares/difference-of-squares-test.scm
trackler-2.2.1.177 tracks/scheme/exercises/difference-of-squares/difference-of-squares-test.scm
trackler-2.2.1.176 tracks/scheme/exercises/difference-of-squares/difference-of-squares-test.scm
trackler-2.2.1.175 tracks/scheme/exercises/difference-of-squares/difference-of-squares-test.scm
trackler-2.2.1.174 tracks/scheme/exercises/difference-of-squares/difference-of-squares-test.scm
trackler-2.2.1.173 tracks/scheme/exercises/difference-of-squares/difference-of-squares-test.scm
trackler-2.2.1.172 tracks/scheme/exercises/difference-of-squares/difference-of-squares-test.scm
trackler-2.2.1.171 tracks/scheme/exercises/difference-of-squares/difference-of-squares-test.scm
trackler-2.2.1.170 tracks/scheme/exercises/difference-of-squares/difference-of-squares-test.scm
trackler-2.2.1.169 tracks/scheme/exercises/difference-of-squares/difference-of-squares-test.scm
trackler-2.2.1.167 tracks/scheme/exercises/difference-of-squares/difference-of-squares-test.scm
trackler-2.2.1.166 tracks/scheme/exercises/difference-of-squares/difference-of-squares-test.scm
trackler-2.2.1.165 tracks/scheme/exercises/difference-of-squares/difference-of-squares-test.scm
trackler-2.2.1.164 tracks/scheme/exercises/difference-of-squares/difference-of-squares-test.scm
trackler-2.2.1.163 tracks/scheme/exercises/difference-of-squares/difference-of-squares-test.scm
trackler-2.2.1.162 tracks/scheme/exercises/difference-of-squares/difference-of-squares-test.scm
trackler-2.2.1.161 tracks/scheme/exercises/difference-of-squares/difference-of-squares-test.scm
trackler-2.2.1.160 tracks/scheme/exercises/difference-of-squares/difference-of-squares-test.scm