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