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 119 - "is"-macro not available #77

Open
Scotty1701d opened this issue Jan 23, 2023 · 6 comments
Open

Problem 119 - "is"-macro not available #77

Scotty1701d opened this issue Jan 23, 2023 · 6 comments

Comments

@Scotty1701d
Copy link

Scotty1701d commented Jan 23, 2023

In problem 119:

(is (= (__ :x [[:o :e :e]
the check of the solution fails completely because the is-macro isn't available.

Since this additional step is not needed, it should be omitted.

Edit:
As a workaround I added a definition for it at the begin of my function as a dummy:
(fn [p b] (defn is [arg] args) (...

@borkdude
Copy link
Collaborator

We can fix this by including cljs.test from https://github.com/babashka/sci.configs into the SCI configuration. Do you want to try this?

@Scotty1701d
Copy link
Author

Unfortunatly I don't know how to do it. I thought it already is included in test.cljs

But then why is this test necessary at all?

@borkdude
Copy link
Collaborator

No worries, I'll do it.

What do you mean by:

But then why is this test necessary at all?

@Scotty1701d
Copy link
Author

All other problems simply start with testing
(= ...

but problem 119 tests with
(is (= ...

@borkdude
Copy link
Collaborator

Yes, that's pretty weird, I agree!

@oxalorg What is your policy on changing the puzzles of 4clojure itself?

@Scotty1701d
Copy link
Author

I just looked into the problems database problems.json
The code in line 117 doesn't contain the test. So it's a only a problem of distribution to the webserver!?

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