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.159 tracks/elisp/exercises/difference-of-squares/difference-of-squares-test.el
trackler-2.2.1.158 tracks/elisp/exercises/difference-of-squares/difference-of-squares-test.el
trackler-2.2.1.157 tracks/elisp/exercises/difference-of-squares/difference-of-squares-test.el
trackler-2.2.1.156 tracks/elisp/exercises/difference-of-squares/difference-of-squares-test.el
trackler-2.2.1.155 tracks/elisp/exercises/difference-of-squares/difference-of-squares-test.el
trackler-2.2.1.154 tracks/elisp/exercises/difference-of-squares/difference-of-squares-test.el
trackler-2.2.1.153 tracks/elisp/exercises/difference-of-squares/difference-of-squares-test.el
trackler-2.2.1.152 tracks/elisp/exercises/difference-of-squares/difference-of-squares-test.el
trackler-2.2.1.151 tracks/elisp/exercises/difference-of-squares/difference-of-squares-test.el
trackler-2.2.1.150 tracks/elisp/exercises/difference-of-squares/difference-of-squares-test.el
trackler-2.2.1.149 tracks/elisp/exercises/difference-of-squares/difference-of-squares-test.el
trackler-2.2.1.148 tracks/elisp/exercises/difference-of-squares/difference-of-squares-test.el
trackler-2.2.1.147 tracks/elisp/exercises/difference-of-squares/difference-of-squares-test.el
trackler-2.2.1.146 tracks/elisp/exercises/difference-of-squares/difference-of-squares-test.el
trackler-2.2.1.145 tracks/elisp/exercises/difference-of-squares/difference-of-squares-test.el
trackler-2.2.1.144 tracks/elisp/exercises/difference-of-squares/difference-of-squares-test.el
trackler-2.2.1.143 tracks/elisp/exercises/difference-of-squares/difference-of-squares-test.el
trackler-2.2.1.142 tracks/elisp/exercises/difference-of-squares/difference-of-squares-test.el
trackler-2.2.1.141 tracks/elisp/exercises/difference-of-squares/difference-of-squares-test.el
trackler-2.2.1.140 tracks/elisp/exercises/difference-of-squares/difference-of-squares-test.el