Skip to content

Commit a570ec5

Browse files
author
Jani Rahkola
committed
Fixed test for titles.
1 parent ba5043b commit a570ec5

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

test/structured_data_test.clj

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -133,14 +133,18 @@
133133

134134
(facts "titles"
135135
(titles [cities]) => ["The City and the City"]
136-
(titles books) => ["The City and the City" "Wild Seed" "Embassytown"]))
136+
(titles books) => (just ["The City and the City"
137+
"Wild Seed"
138+
"Embassytown"
139+
"The Little Schemer"]
140+
:in-any-order)))
137141

138142
(facts "monotonic?"
139-
(monotonic? [1 2 3]) => true
140-
(monotonic? [0 1 10 11]) => true
141-
(monotonic? [3 2 0 -3]) => true
142-
(monotonic? [3 2 2]) => true
143-
(monotonic? [1 2 1 0]) => false)
143+
(monotonic? [1 2 3]) => true
144+
(monotonic? [0 1 10 11]) => true
145+
(monotonic? [3 2 0 -3]) => true
146+
(monotonic? [3 2 2]) => true
147+
(monotonic? [1 2 1 0]) => false)
144148

145149
(facts "stars"
146150
(stars 1) => "*"
@@ -208,7 +212,6 @@
208212
(all-author-names books)
209213
=> #{"Matthias Felleisen" "China Miéville"
210214
"Octavia E. Butler" "Daniel Friedman"})
211-
212215
(facts "author->string"
213216
(author->string felleisen) => "Matthias Felleisen"
214217
(author->string friedman) => "Daniel Friedman (1944 - )"
@@ -264,6 +267,4 @@
264267
(facts "books-by-living-authors"
265268
(books-by-living-authors books) => (just #{little-schemer cities embassytown})
266269
(books-by-living-authors (concat books [deus-irae, silmarillion]))
267-
=> (just #{little-schemer cities embassytown silmarillion})))
268-
269-
; %____%
270+
=> (just #{little-schemer cities embassytown silmarillion})))

0 commit comments

Comments
 (0)