Skip to content

Test: min-key#853

Merged
jeaye merged 4 commits intojank-lang:mainfrom
prairir:min-key-fix
Feb 26, 2026
Merged

Test: min-key#853
jeaye merged 4 commits intojank-lang:mainfrom
prairir:min-key-fix

Conversation

@prairir
Copy link
Contributor

@prairir prairir commented Feb 24, 2026

I'm still a clojure beginner so let me know if theres any obvious issues

NaN ordering was surprising. Its because (<= ##NaN 1) and (<= 1 ##NaN) are both false.

I made =-or-NaN? to help with are testing. With only =, it got messy.

this closes #365

Im still a clojure beginner so sorry if there are any obvious
mistakes. The NaN ordering stuff caught me off guard. I made `=-or-NaN?`
to organize `are` testing. It was much messier with `=`.

The `numeric ordering` tests were more or less yoinked from `min.cljc`.
@CLAassistant
Copy link

CLAassistant commented Feb 24, 2026

CLA assistant check
All committers have signed the CLA.

@prairir
Copy link
Contributor Author

prairir commented Feb 24, 2026

oof clr failed cause Math/abs wasnt found. I worry Math/pow also wouldnt be found.

I should probably reimplement them. I was messing around with (when-var-exists Math/pow ...) but it would skip in clj and bb tests.

@prairir
Copy link
Contributor Author

prairir commented Feb 24, 2026

looks like basilisp test cases didnt pass. let me fix that

@prairir
Copy link
Contributor Author

prairir commented Feb 24, 2026

this closes #365

@jeaye jeaye requested a review from E-A-Griffin February 25, 2026 21:00
@jeaye
Copy link
Member

jeaye commented Feb 25, 2026

this closes #365

This needs to go in the PR description, rather than be a comment. You can edit the description at any time.

@prairir
Copy link
Contributor Author

prairir commented Feb 26, 2026

thanks for pointing out. fixed

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! Sorry about the delay.

@jeaye jeaye merged commit 159f350 into jank-lang:main Feb 26, 2026
6 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.

clojure.core/min-key

3 participants