Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c6d2de3

Browse files
author
Jani Rahkola
committedOct 22, 2012
Fixed shadowing name authors to authors-set.
1 parent a570ec5 commit c6d2de3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed
 

‎test/structured_data_test.clj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@
180180
dick {:name "Philip K. Dick", :birth-year 1928, :death-year 1982}
181181
zelazny {:name "Roger Zelazny", :birth-year 1937, :death-year 1995}
182182

183-
authors #{china, felleisen, octavia, friedman}
183+
authors-set #{china, felleisen, octavia, friedman}
184184

185185
cities {:title "The City and the City" :authors #{china}}
186186
wild-seed {:title "Wild Seed", :authors #{octavia}}
@@ -247,13 +247,13 @@
247247
(books-by-author octavia books) => (just [wild-seed]))
248248

249249
(facts "author-by-name"
250-
(author-by-name "Octavia E. Butler" authors) => octavia
250+
(author-by-name "Octavia E. Butler" authors-set) => octavia
251251
(author-by-name "Octavia E. Butler" #{felleisen, friedman}) => nil
252-
(author-by-name "China Miéville" authors) => china
253-
(author-by-name "Goerge R. R. Martin" authors) => nil)
252+
(author-by-name "China Miéville" authors-set) => china
253+
(author-by-name "Goerge R. R. Martin" authors-set) => nil)
254254

255255
(facts "living-authors"
256-
(living-authors authors) => (just #{china, felleisen, friedman})
256+
(living-authors authors-set) => (just #{china, felleisen, friedman})
257257
(living-authors #{octavia}) => (just #{})
258258
(living-authors #{china, felleisen}) => (just #{china, felleisen}))
259259

0 commit comments

Comments
 (0)
Please sign in to comment.