-
-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
allergies: Split into one deftest per test (#693)
* allergies: Split into one deftest per test * update config * update starter file * add instructions append * add missing top-level heading in append file * rename test functions, make test descriptions identical to the ones from .toml [no important files changed]
- Loading branch information
1 parent
bad10ab
commit bf996c2
Showing
4 changed files
with
213 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Instructions append | ||
|
||
## Appendix | ||
|
||
~~~~exercism/note | ||
The instructions above are synchronized with a shared repository to ensure consistency across all language tracks. | ||
This appendix provides additional clarification or modifies the instructions as needed to better align with the goals of the Clojure track. | ||
~~~~ | ||
|
||
For this exercise in the Clojure track, you may **assume the output of the `allergies` function is a vector**, as indicated by the tests. | ||
However, this is not a strict requirement; you are free to return any sequential collection. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,8 @@ | |
"kytrinyx", | ||
"mathias", | ||
"sjwarner-bp", | ||
"yurrriq" | ||
"yurrriq", | ||
"tasxatzial" | ||
], | ||
"files": { | ||
"solution": [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
(ns allergies) | ||
|
||
(defn allergies [] ;; <- arglist goes here | ||
;; your code goes here | ||
) | ||
(defn allergic-to? | ||
"Returns true if the score indicates an allergy to the allergen; otherwise, returns false" | ||
[score allergen] | ||
;; function body | ||
) | ||
|
||
(defn allergic-to? [] ;; <- arglist goes here | ||
;; your code goes here | ||
) | ||
(defn allergies | ||
"Returns all allergens associated with the score" | ||
[score] | ||
;; function body | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters