Skip to content

Conversation

@dgr
Copy link
Contributor

@dgr dgr commented Dec 21, 2024

Add new tests for:

  • -
  • /

(is (NaN? (- ##NaN)))

(is (thrown? Exception (- ##NaN nil)))
(is (thrown? Exception (- ##Inf nil))))
Copy link
Member

Choose a reason for hiding this comment

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

For both of these, it'd be good to have a test case for the variadic arity. i.e. (apply - (range 20))

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point. I'll add.

@dgr
Copy link
Contributor Author

dgr commented Jan 3, 2025

Sorry about the wait. I just pushed some updates that add more multi-arg and single-arg tests.

@jeaye jeaye merged commit 59cbdba into jank-lang:main Jan 3, 2025
2 checks passed
@jeaye
Copy link
Member

jeaye commented Jan 3, 2025

Excellent work! Thanks for all of the help. 🙂

@dgr dgr deleted the dgr-minus-slash branch January 4, 2025 04:43
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