Skip to content

Conversation

@super7ramp
Copy link
Contributor

This closes #397.

This closes jank-lang#397.
(deftest test-pop!

(testing "nominal cases"
(are [expected vec] (= expected (persistent! (pop! (transient vec))))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we add a test for the count of the transient vector before coercing it to a persistent vector?

Copy link
Member

Choose a reason for hiding this comment

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

This is a gray area, since it could be considered testing count or testing transients in general, rather than pop!. The most important thing is that the value we get out of pop!, when turned persistent, is what we expect.

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.

Thank you!

@jeaye jeaye merged commit 024edd1 into jank-lang:main Nov 17, 2025
2 checks passed
@super7ramp super7ramp deleted the pop-bang branch November 17, 2025 20:18
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.

clojure.core/pop!

3 participants