Skip to content

Commit a890e79

Browse files
author
Ilmari Vacklin
committed
Add books->author-names
1 parent 3dfd81e commit a890e79

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/structured_data.clj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,7 @@
3030
(defn authors [books]
3131
:-)
3232

33+
(defn books->author-names [books]
34+
:-)
35+
3336
; %________%

test/structured_data_test.clj

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,8 @@
5353

5454
(facts "authors"
5555
(authors books) => #{china octavia})
56+
57+
(facts "books->author-names"
58+
(books->author-names books) => #{"Octavia E. Butler" "China Miéville"})
59+
60+
; %____%

0 commit comments

Comments
 (0)