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 keyword-string parsing. #3

Closed
charlespwd opened this issue Feb 19, 2015 · 0 comments
Closed

Problem with keyword-string parsing. #3

charlespwd opened this issue Feb 19, 2015 · 0 comments
Labels

Comments

@charlespwd
Copy link
Owner

Some problem with the key-string parsing code. Tested with a redis-connection.

Context:

(def redis-store-conn {:pool nil :spec nil}) ; use defaults
(bc/set-config! {:store (bcr/create-redis-store redis-store-conn)})
(bc/with-identity "alice"
                  (bc/alt :headline-test
                          :like-this-post "Like this post?"
                          :wow-cool "Wow cool!"))

(bc/with-identity "alice"
                  (bc/score :headline-test :signup))

(bc/with-identity "alice"
                  (bc/score :headline-test :purchase))

Guilty function:

(bc/results :headline-test :like-this-post)

Results in
java.lang.IllegalArgumentException: No matching method found: startsWith for class clojure.lang.Keyword

Problem with the first argument.

@charlespwd charlespwd added the bug label Feb 19, 2015
charlespwd added a commit that referenced this issue Feb 19, 2015
Keyword was not being converted to string.
Closes #3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant