|
2 | 2 | (:require [clojure.test :refer [deftest testing is]] |
3 | 3 | allergies)) |
4 | 4 |
|
5 | | -(deftest allergic-to?_test_1 |
| 5 | +(deftest ^:allergic-to? allergic-to?_test_1 |
6 | 6 | (testing "check for eggs allergy ▶ not allergic to anything" |
7 | 7 | (is (false? (allergies/allergic-to? 0 :eggs))))) |
8 | 8 |
|
9 | | -(deftest allergic-to?_test_2 |
| 9 | +(deftest ^:allergic-to? allergic-to?_test_2 |
10 | 10 | (testing "check for eggs allergy ▶ allergic only to eggs" |
11 | 11 | (is (true? (allergies/allergic-to? 1 :eggs))))) |
12 | 12 |
|
13 | | -(deftest allergic-to?_test_3 |
| 13 | +(deftest ^:allergic-to? allergic-to?_test_3 |
14 | 14 | (testing "check for eggs allergy ▶ allergic to eggs and something else" |
15 | 15 | (is (true? (allergies/allergic-to? 3 :eggs))))) |
16 | 16 |
|
17 | | -(deftest allergic-to?_test_4 |
| 17 | +(deftest ^:allergic-to? allergic-to?_test_4 |
18 | 18 | (testing "check for eggs allergy ▶ allergic to something, but not eggs" |
19 | 19 | (is (false? (allergies/allergic-to? 2 :eggs))))) |
20 | 20 |
|
21 | | -(deftest allergic-to?_test_5 |
| 21 | +(deftest ^:allergic-to? allergic-to?_test_5 |
22 | 22 | (testing "check for eggs allergy ▶ allergic to everything" |
23 | 23 | (is (true? (allergies/allergic-to? 255 :eggs))))) |
24 | 24 |
|
25 | | -(deftest allergic-to?_test_6 |
| 25 | +(deftest ^:allergic-to? allergic-to?_test_6 |
26 | 26 | (testing "check for peanuts allergy ▶ not allergic to anything" |
27 | 27 | (is (false? (allergies/allergic-to? 0 :peanuts))))) |
28 | 28 |
|
29 | | -(deftest allergic-to?_test_7 |
| 29 | +(deftest ^:allergic-to? allergic-to?_test_7 |
30 | 30 | (testing "check for peanuts allergy ▶ allergic only to peanuts" |
31 | 31 | (is (true? (allergies/allergic-to? 2 :peanuts))))) |
32 | 32 |
|
33 | | -(deftest allergic-to?_test_8 |
| 33 | +(deftest ^:allergic-to? allergic-to?_test_8 |
34 | 34 | (testing "check for peanuts allergy ▶ allergic to peanuts and something else" |
35 | 35 | (is (true? (allergies/allergic-to? 7 :peanuts))))) |
36 | 36 |
|
37 | | -(deftest allergic-to?_test_9 |
| 37 | +(deftest ^:allergic-to? allergic-to?_test_9 |
38 | 38 | (testing "check for peanuts allergy ▶ allergic to something, but not peanuts" |
39 | 39 | (is (false? (allergies/allergic-to? 5 :peanuts))))) |
40 | 40 |
|
41 | | -(deftest allergic-to?_test_10 |
| 41 | +(deftest ^:allergic-to? allergic-to?_test_10 |
42 | 42 | (testing "check for peanuts allergy ▶ allergic to everything" |
43 | 43 | (is (true? (allergies/allergic-to? 255 :peanuts))))) |
44 | 44 |
|
45 | | -(deftest allergic-to?_test_11 |
| 45 | +(deftest ^:allergic-to? allergic-to?_test_11 |
46 | 46 | (testing "check for shellfish allergy ▶ not allergic to anything" |
47 | 47 | (is (false? (allergies/allergic-to? 0 :shellfish))))) |
48 | 48 |
|
49 | | -(deftest allergic-to?_test_12 |
| 49 | +(deftest ^:allergic-to? allergic-to?_test_12 |
50 | 50 | (testing "check for shellfish allergy ▶ allergic only to shellfish" |
51 | 51 | (is (true? (allergies/allergic-to? 4 :shellfish))))) |
52 | 52 |
|
53 | | -(deftest allergic-to?_test_13 |
| 53 | +(deftest ^:allergic-to? allergic-to?_test_13 |
54 | 54 | (testing "check for shellfish allergy ▶ allergic to shellfish and something else" |
55 | 55 | (is (true? (allergies/allergic-to? 14 :shellfish))))) |
56 | 56 |
|
57 | | -(deftest allergic-to?_test_14 |
| 57 | +(deftest ^:allergic-to? allergic-to?_test_14 |
58 | 58 | (testing "check for shellfish allergy ▶ allergic to something, but not shellfish" |
59 | 59 | (is (false? (allergies/allergic-to? 10 :shellfish))))) |
60 | 60 |
|
61 | | -(deftest allergic-to?_test_15 |
| 61 | +(deftest ^:allergic-to? allergic-to?_test_15 |
62 | 62 | (testing "check for shellfish allergy ▶ allergic to everything" |
63 | 63 | (is (true? (allergies/allergic-to? 255 :shellfish))))) |
64 | 64 |
|
65 | | -(deftest allergic-to?_test_16 |
| 65 | +(deftest ^:allergic-to? allergic-to?_test_16 |
66 | 66 | (testing "check for strawberries allergy ▶ not allergic to anything" |
67 | 67 | (is (false? (allergies/allergic-to? 0 :strawberries))))) |
68 | 68 |
|
69 | | -(deftest allergic-to?_test_17 |
| 69 | +(deftest ^:allergic-to? allergic-to?_test_17 |
70 | 70 | (testing "check for strawberries allergy ▶ allergic only to strawberries" |
71 | 71 | (is (true? (allergies/allergic-to? 8 :strawberries))))) |
72 | 72 |
|
73 | | -(deftest allergic-to?_test_18 |
| 73 | +(deftest ^:allergic-to? allergic-to?_test_18 |
74 | 74 | (testing "check for strawberries allergy ▶ allergic to strawberries and something else" |
75 | 75 | (is (true? (allergies/allergic-to? 28 :strawberries))))) |
76 | 76 |
|
77 | | -(deftest allergic-to?_test_19 |
| 77 | +(deftest ^:allergic-to? allergic-to?_test_19 |
78 | 78 | (testing "check for strawberries allergy ▶ allergic to something, but not strawberries" |
79 | 79 | (is (false? (allergies/allergic-to? 20 :strawberries))))) |
80 | 80 |
|
81 | | -(deftest allergic-to?_test_20 |
| 81 | +(deftest ^:allergic-to? allergic-to?_test_20 |
82 | 82 | (testing "check for strawberries allergy ▶ allergic to everything" |
83 | 83 | (is (true? (allergies/allergic-to? 255 :strawberries))))) |
84 | 84 |
|
85 | | -(deftest allergic-to?_test_21 |
| 85 | +(deftest ^:allergic-to? allergic-to?_test_21 |
86 | 86 | (testing "check for tomatoes allergy ▶ not allergic to anything" |
87 | 87 | (is (false? (allergies/allergic-to? 0 :tomatoes))))) |
88 | 88 |
|
89 | | -(deftest allergic-to?_test_22 |
| 89 | +(deftest ^:allergic-to? allergic-to?_test_22 |
90 | 90 | (testing "check for tomatoes allergy ▶ allergic only to tomatoes" |
91 | 91 | (is (true? (allergies/allergic-to? 16 :tomatoes))))) |
92 | 92 |
|
93 | | -(deftest allergic-to?_test_23 |
| 93 | +(deftest ^:allergic-to? allergic-to?_test_23 |
94 | 94 | (testing "check for tomatoes allergy ▶ allergic to tomatoes and something else" |
95 | 95 | (is (true? (allergies/allergic-to? 56 :tomatoes))))) |
96 | 96 |
|
97 | | -(deftest allergic-to?_test_24 |
| 97 | +(deftest ^:allergic-to? allergic-to?_test_24 |
98 | 98 | (testing "check for tomatoes allergy ▶ allergic to something, but not tomatoes" |
99 | 99 | (is (false? (allergies/allergic-to? 40 :tomatoes))))) |
100 | 100 |
|
101 | | -(deftest allergic-to?_test_25 |
| 101 | +(deftest ^:allergic-to? allergic-to?_test_25 |
102 | 102 | (testing "check for tomatoes allergy ▶ allergic to everything" |
103 | 103 | (is (true? (allergies/allergic-to? 255 :tomatoes))))) |
104 | 104 |
|
105 | | -(deftest allergic-to?_test_26 |
| 105 | +(deftest ^:allergic-to? allergic-to?_test_26 |
106 | 106 | (testing "check for chocolate allergy ▶ not allergic to anything" |
107 | 107 | (is (false? (allergies/allergic-to? 0 :chocolate))))) |
108 | 108 |
|
109 | | -(deftest allergic-to?_test_27 |
| 109 | +(deftest ^:allergic-to? allergic-to?_test_27 |
110 | 110 | (testing "check for chocolate allergy ▶ allergic only to chocolate" |
111 | 111 | (is (true? (allergies/allergic-to? 32 :chocolate))))) |
112 | 112 |
|
113 | | -(deftest allergic-to?_test_28 |
| 113 | +(deftest ^:allergic-to? allergic-to?_test_28 |
114 | 114 | (testing "check for chocolate allergy ▶ allergic to chocolate and something else" |
115 | 115 | (is (true? (allergies/allergic-to? 112 :chocolate))))) |
116 | 116 |
|
117 | | -(deftest allergic-to?_test_29 |
| 117 | +(deftest ^:allergic-to? allergic-to?_test_29 |
118 | 118 | (testing "check for chocolate allergy ▶ allergic to something, but not chocolate" |
119 | 119 | (is (false? (allergies/allergic-to? 80 :chocolate))))) |
120 | 120 |
|
121 | | -(deftest allergic-to?_test_30 |
| 121 | +(deftest ^:allergic-to? allergic-to?_test_30 |
122 | 122 | (testing "check for chocolate allergy ▶ allergic to everything" |
123 | 123 | (is (true? (allergies/allergic-to? 255 :chocolate))))) |
124 | 124 |
|
125 | | -(deftest allergic-to?_test_31 |
| 125 | +(deftest ^:allergic-to? allergic-to?_test_31 |
126 | 126 | (testing "check for pollen allergy ▶ not allergic to anything" |
127 | 127 | (is (false? (allergies/allergic-to? 0 :pollen))))) |
128 | 128 |
|
129 | | -(deftest allergic-to?_test_32 |
| 129 | +(deftest ^:allergic-to? allergic-to?_test_32 |
130 | 130 | (testing "check for pollen allergy ▶ allergic only to pollen" |
131 | 131 | (is (true? (allergies/allergic-to? 64 :pollen))))) |
132 | 132 |
|
133 | | -(deftest allergic-to?_test_33 |
| 133 | +(deftest ^:allergic-to? allergic-to?_test_33 |
134 | 134 | (testing "check for pollen allergy ▶ allergic to pollen and something else" |
135 | 135 | (is (true? (allergies/allergic-to? 224 :pollen))))) |
136 | 136 |
|
137 | | -(deftest allergic-to?_test_34 |
| 137 | +(deftest ^:allergic-to? allergic-to?_test_34 |
138 | 138 | (testing "check for pollen allergy ▶ allergic to something, but not pollen" |
139 | 139 | (is (false? (allergies/allergic-to? 160 :pollen))))) |
140 | 140 |
|
141 | | -(deftest allergic-to?_test_35 |
| 141 | +(deftest ^:allergic-to? allergic-to?_test_35 |
142 | 142 | (testing "check for pollen allergy ▶ allergic to everything" |
143 | 143 | (is (true? (allergies/allergic-to? 255 :pollen))))) |
144 | 144 |
|
145 | | -(deftest allergic-to?_test_36 |
| 145 | +(deftest ^:allergic-to? allergic-to?_test_36 |
146 | 146 | (testing "check for cats allergy ▶ not allergic to anything" |
147 | 147 | (is (false? (allergies/allergic-to? 0 :cats))))) |
148 | 148 |
|
149 | | -(deftest allergic-to?_test_37 |
| 149 | +(deftest ^:allergic-to? allergic-to?_test_37 |
150 | 150 | (testing "check for cats allergy ▶ allergic only to cats" |
151 | 151 | (is (true? (allergies/allergic-to? 128 :cats))))) |
152 | 152 |
|
153 | | -(deftest allergic-to?_test_38 |
| 153 | +(deftest ^:allergic-to? allergic-to?_test_38 |
154 | 154 | (testing "check for cats allergy ▶ allergic to cats and something else" |
155 | 155 | (is (true? (allergies/allergic-to? 192 :cats))))) |
156 | 156 |
|
157 | | -(deftest allergic-to?_test_39 |
| 157 | +(deftest ^:allergic-to? allergic-to?_test_39 |
158 | 158 | (testing "check for cats allergy ▶ allergic to something, but not cats" |
159 | 159 | (is (false? (allergies/allergic-to? 64 :cats))))) |
160 | 160 |
|
161 | | -(deftest allergic-to?_test_40 |
| 161 | +(deftest ^:allergic-to? allergic-to?_test_40 |
162 | 162 | (testing "check for cats allergy ▶ allergic to everything" |
163 | 163 | (is (true? (allergies/allergic-to? 255 :cats))))) |
164 | 164 |
|
165 | | -(deftest allergies_test_1 |
| 165 | +(deftest ^:allergies allergies_test_1 |
166 | 166 | (testing "allergies ▶ no allergies" |
167 | 167 | (is (= [] |
168 | 168 | (allergies/allergies 0))))) |
169 | 169 |
|
170 | | -(deftest allergies_test_2 |
| 170 | +(deftest ^:allergies allergies_test_2 |
171 | 171 | (testing "allergies ▶ just eggs" |
172 | 172 | (is (= [:eggs] |
173 | 173 | (allergies/allergies 1))))) |
174 | 174 |
|
175 | | -(deftest allergies_test_3 |
| 175 | +(deftest ^:allergies allergies_test_3 |
176 | 176 | (testing "allergies ▶ just peanuts" |
177 | 177 | (is (= [:peanuts] |
178 | 178 | (allergies/allergies 2))))) |
179 | 179 |
|
180 | | -(deftest allergies_test_4 |
| 180 | +(deftest ^:allergies allergies_test_4 |
181 | 181 | (testing "allergies ▶ just strawberries" |
182 | 182 | (is (= [:strawberries] |
183 | 183 | (allergies/allergies 8))))) |
184 | 184 |
|
185 | | -(deftest allergies_test_5 |
| 185 | +(deftest ^:allergies allergies_test_5 |
186 | 186 | (testing "allergies ▶ eggs and peanuts" |
187 | 187 | (is (= [:eggs :peanuts] |
188 | 188 | (allergies/allergies 3))))) |
189 | 189 |
|
190 | | -(deftest allergies_test_6 |
| 190 | +(deftest ^:allergies allergies_test_6 |
191 | 191 | (testing "allergies ▶ more than eggs but not peanuts" |
192 | 192 | (is (= [:eggs :shellfish] |
193 | 193 | (allergies/allergies 5))))) |
194 | 194 |
|
195 | | -(deftest allergies_test_7 |
| 195 | +(deftest ^:allergies allergies_test_7 |
196 | 196 | (testing "allergies ▶ lots of stuff" |
197 | 197 | (is (= [:strawberries :tomatoes :chocolate :pollen :cats] |
198 | 198 | (allergies/allergies 248))))) |
199 | 199 |
|
200 | | -(deftest allergies_test_8 |
| 200 | +(deftest ^:allergies allergies_test_8 |
201 | 201 | (testing "allergies ▶ everything" |
202 | 202 | (is (= [:eggs :peanuts :shellfish :strawberries :tomatoes :chocolate :pollen :cats] |
203 | 203 | (allergies/allergies 255))))) |
204 | 204 |
|
205 | | -(deftest allergies_test_9 |
| 205 | +(deftest ^:allergies allergies_test_9 |
206 | 206 | (testing "allergies ▶ no allergen score parts" |
207 | 207 | (is (= [:eggs :shellfish :strawberries :tomatoes :chocolate :pollen :cats] |
208 | 208 | (allergies/allergies 509))))) |
209 | 209 |
|
210 | | -(deftest allergies_test_10 |
| 210 | +(deftest ^:allergies allergies_test_10 |
211 | 211 | (testing "allergies ▶ no allergen score parts without highest valid score" |
212 | 212 | (is (= [:eggs] |
213 | 213 | (allergies/allergies 257))))) |
0 commit comments