Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with the Exercise 29 #1068

Open
leolamping opened this issue Mar 14, 2017 · 1 comment
Open

Problem with the Exercise 29 #1068

leolamping opened this issue Mar 14, 2017 · 1 comment

Comments

@leolamping
Copy link

Hi there!
I'm having a issue with the test for the Exercise 29. Look at the result of the test (lein midje):

FAIL "books->string" at (structured_data.clj:317)
Expected: #"3 books. The Little Schemer, written by (Daniel Friedman (1944 - ), Matthias Felleisen|Matthias Felleisen, Daniel Friedman (1944 - )). The City and the City, written by China Miéville (1972 - ). Wild Seed, written by Octavia E. Butler (1947 - 2006)."

Comparing with the result in the article:

(books->string [little-schemer, cities, wild-seed])
;=> "3 books. The Little Schemer, written by Daniel Friedman (1944 - ), Matthias Felleisen. The City and the City, written by China Miéville (1972 - ). Wild Seed, written by Octavia E. Butler (1947 - 2006)."

@mtpabis
Copy link

mtpabis commented May 7, 2017

Had a problem with this too, but it turned out i missed the ending period (".").

This #"(...)|(...)" string just contains escape characters (e.g. "(") and alternative sign ("|") to allow different solutions (the ones with different ordering).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants