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