Sha256: 4e22ed749b65164ce0f0f8cbe932c241b8bf91411481dd9ad3f2bbfde66afd1a

Contents?: true

Size: 951 Bytes

Versions: 396

Compression:

Stored size: 951 Bytes

Contents

;;; difference-of-squares-test.el --- Tests for difference-of-squares (exercism)

;;; Commentary:

;;; Code:

(load-file "difference-of-squares.el")

(ert-deftest square-of-sums-to-5 ()
  (should (= 225 (square-of-sums 5))))

(ert-deftest sum-of-squares-to-5 ()
  (should (= 55 (sum-of-squares 5))))

(ert-deftest difference-of-sums-to-5 ()
  (should (= 170 (difference 5))))


(ert-deftest square-of-sums-to-10 ()
  (should (= 3025 (square-of-sums 10))))

(ert-deftest sum-of-squares-to-10 ()
  (should (= 385 (sum-of-squares 10))))

(ert-deftest difference-of-sums-to-10 ()
  (should (= 2640 (difference 10))))


(ert-deftest square-of-sums-to-100 ()
  (should (= 25502500 (square-of-sums 100))))

(ert-deftest sum-of-squares-to-100 ()
  (should (= 338350 (sum-of-squares 100))))

(ert-deftest difference-of-sums-to-100 ()
  (should (= 25164150 (difference 100))))


(provide 'difference-of-squares-test)
;;; difference-of-squares-test.el ends here

Version data entries

396 entries across 396 versions & 1 rubygems

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