|
6 | 6 | [x y] |
7 | 7 | (= (float x) (float y))) |
8 | 8 |
|
9 | | -(deftest ^{:task 1} production-rate-speed-0-test |
| 9 | +(deftest ^{:task 1 :task-1 true :production-rate true} production-rate-speed-0-test |
10 | 10 | (testing "Production rate for speed 0" |
11 | 11 | (is (float-equal? 0.0 (cars-assemble/production-rate 0))))) |
12 | 12 |
|
13 | | -(deftest ^{:task 1} production-rate-speed-1-test |
| 13 | +(deftest ^{:task 1 :task-1 true :production-rate true} production-rate-speed-1-test |
14 | 14 | (testing "Production rate for speed 1" |
15 | 15 | (is (float-equal? 221.0 (cars-assemble/production-rate 1))))) |
16 | 16 |
|
17 | | -(deftest ^{:task 1} production-rate-speed-4-test |
| 17 | +(deftest ^{:task 1 :task-1 true :production-rate true} production-rate-speed-4-test |
18 | 18 | (testing "Production rate for speed 4" |
19 | 19 | (is (float-equal? 884.0 (cars-assemble/production-rate 4))))) |
20 | 20 |
|
21 | | -(deftest ^{:task 1} production-rate-speed-7-test |
| 21 | +(deftest ^{:task 1 :task-1 true :production-rate true} production-rate-speed-7-test |
22 | 22 | (testing "Production rate for speed 7" |
23 | 23 | (is (float-equal? 1392.3 (cars-assemble/production-rate 7))))) |
24 | 24 |
|
25 | | -(deftest ^{:task 1} production-rate-speed-9-test |
| 25 | +(deftest ^{:task 1 :task-1 true :production-rate true} production-rate-speed-9-test |
26 | 26 | (testing "Production rate for speed 9" |
27 | 27 | (is (float-equal? 1591.2 (cars-assemble/production-rate 9))))) |
28 | 28 |
|
29 | | -(deftest ^{:task 1} production-rate-speed-10-test |
| 29 | +(deftest ^{:task 1 :task-1 true :production-rate true} production-rate-speed-10-test |
30 | 30 | (testing "Production rate for speed 10" |
31 | 31 | (is (float-equal? 1701.7 (cars-assemble/production-rate 10))))) |
32 | 32 |
|
33 | | -(deftest ^{:task 2} working-items-speed-0-test |
| 33 | +(deftest ^{:task 2 :task-2 true :working-items true} working-items-speed-0-test |
34 | 34 | (testing "Working items for speed 0" |
35 | 35 | (is (= 0 (cars-assemble/working-items 0))))) |
36 | 36 |
|
37 | | -(deftest ^{:task 2} working-items-speed-1-test |
| 37 | +(deftest ^{:task 2 :task-2 true :working-items true} working-items-speed-1-test |
38 | 38 | (testing "Working items for speed 1" |
39 | 39 | (is (= 3 (cars-assemble/working-items 1))))) |
40 | 40 |
|
41 | | -(deftest ^{:task 2} working-items-speed-5-test |
| 41 | +(deftest ^{:task 2 :task-2 true :working-items true} working-items-speed-5-test |
42 | 42 | (testing "Working items for speed 5" |
43 | 43 | (is (= 16 (cars-assemble/working-items 5))))) |
44 | 44 |
|
45 | | -(deftest ^{:task 2} working-items-speed-8-test |
| 45 | +(deftest ^{:task 2 :task-2 true :working-items true} working-items-speed-8-test |
46 | 46 | (testing "Working items for speed 8" |
47 | 47 | (is (= 26 (cars-assemble/working-items 8))))) |
48 | 48 |
|
49 | | -(deftest ^{:task 2} working-items-speed-9-test |
| 49 | +(deftest ^{:task 2 :task-2 true :working-items true} working-items-speed-9-test |
50 | 50 | (testing "Working items for speed 9" |
51 | 51 | (is (= 26 (cars-assemble/working-items 9))))) |
52 | 52 |
|
53 | | -(deftest ^{:task 2} working-items-speed-10-test |
| 53 | +(deftest ^{:task 2 :task-2 true :working-items true} working-items-speed-10-test |
54 | 54 | (testing "Working items for speed 10" |
55 | 55 | (is (= 28 (cars-assemble/working-items 10))))) |
0 commit comments