|
3 | 3 | difference-of-squares))
|
4 | 4 |
|
5 | 5 | (deftest square-of-sum_test_1
|
6 |
| - (testing "Square the sum of the numbers up to the given number -> square of sum 1" |
| 6 | + (testing "square of sum 1" |
7 | 7 | (is (= 1 (difference-of-squares/square-of-sum 1)))))
|
8 | 8 |
|
9 | 9 | (deftest square-of-sum_test_2
|
10 |
| - (testing "Square the sum of the numbers up to the given number -> square of sum 5" |
| 10 | + (testing "square of sum 5" |
11 | 11 | (is (= 225 (difference-of-squares/square-of-sum 5)))))
|
12 | 12 |
|
13 | 13 | (deftest square-of-sum_test_3
|
14 |
| - (testing "Square the sum of the numbers up to the given number -> square of sum 100" |
| 14 | + (testing "square of sum 100" |
15 | 15 | (is (= 25502500 (difference-of-squares/square-of-sum 100)))))
|
16 | 16 |
|
17 | 17 | (deftest sum-of-squares_test_1
|
18 |
| - (testing "Sum the squares of the numbers up to the given number -> sum of squares 1" |
| 18 | + (testing "sum of squares 1" |
19 | 19 | (is (= 1 (difference-of-squares/sum-of-squares 1)))))
|
20 | 20 |
|
21 | 21 | (deftest sum-of-squares_test_2
|
22 |
| - (testing "Sum the squares of the numbers up to the given number -> sum of squares 5" |
| 22 | + (testing "sum of squares 5" |
23 | 23 | (is (= 55 (difference-of-squares/sum-of-squares 5)))))
|
24 | 24 |
|
25 | 25 | (deftest sum-of-squares_test_3
|
26 |
| - (testing "Sum the squares of the numbers up to the given number -> sum of squares 100" |
| 26 | + (testing "sum of squares 100" |
27 | 27 | (is (= 338350 (difference-of-squares/sum-of-squares 100)))))
|
28 | 28 |
|
29 | 29 | (deftest difference_test_1
|
30 |
| - (testing "Subtract sum of squares from square of sums -> difference of squares 1" |
| 30 | + (testing "difference of squares 1" |
31 | 31 | (is (= 0 (difference-of-squares/difference 1)))))
|
32 | 32 |
|
33 | 33 | (deftest difference_test_2
|
34 |
| - (testing "Subtract sum of squares from square of sums -> difference of squares 5" |
| 34 | + (testing "difference of squares 5" |
35 | 35 | (is (= 170 (difference-of-squares/difference 5)))))
|
36 | 36 |
|
37 | 37 | (deftest difference_test_3
|
38 |
| - (testing "Subtract sum of squares from square of sums -> difference of squares 100" |
| 38 | + (testing "difference of squares 100" |
39 | 39 | (is (= 25164150 (difference-of-squares/difference 100)))))
|
0 commit comments