Skip to content

Add clojure.core-test.reduce-kv - #962

Merged
jeaye merged 3 commits into
jank-lang:mainfrom
djblue:reduce-kv
Oct 22, 2026
Merged

jeaye merged 3 commits into
jank-lang:mainfrom
djblue:reduce-kv

Conversation

@djblue

@djblue djblue commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Closes #438

Comment thread test/clojure/core_test/reduce_kv.cljc Outdated

@jeaye jeaye left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice!

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The reduced-result tests need to detect continued reducer calls after early termination.

1 open issue
What changed in this PR

Adds portable clojure.core/reduce-kv tests to the core conformance suite, addressing issue #438.

Changes:

  • Covers invalid inputs and platform-specific reducer arity behavior.
  • Tests map and vector reductions, empty collections, and reduced results.
  • Adds practical examples of key/value transformations.
File Description
test/​clojure/​core_test/​reduce_kv.cljc Adds guarded, cross-platform tests for reduce-kv.

Review effort: Balanced

Comment thread test/clojure/core_test/reduce_kv.cljc Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@djblue

djblue commented Oct 22, 2026

Copy link
Copy Markdown
Contributor Author

Ok, I think this PR should be good for merge.

@jeaye
jeaye merged commit 14f29e8 into jank-lang:main Oct 22, 2026
5 checks passed
@jeaye

jeaye commented Oct 22, 2026

Copy link
Copy Markdown
Member

Thanks, Chris!

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/reduce-kv

3 participants