Skip to content

Conversation

@dgr
Copy link
Contributor

@dgr dgr commented Feb 20, 2025

Add tests for:

  • vector?
  • list?

(when-var-exists clojure.core/vector?
(deftest test-vector?
(are [expected x] (= expected (vector? x))
true [1 2 3]
Copy link
Member

@jeaye jeaye Feb 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it'd be good to have a test for map entry here, since it acts like a vector. We can do this by just doing something like (first {:a :b}). In jank, since we don't have map entries, you'll actually just get a vector.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, good catch. I'll add that.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, this is done. Sorry for the delay.

Copy link
Member

@jeaye jeaye left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, Dave!

@jeaye jeaye merged commit 10d05be into jank-lang:main Mar 1, 2025
3 checks passed
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

Successfully merging this pull request may close these issues.

2 participants