Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests for - and / #27

Merged
merged 5 commits into from
Jan 3, 2025
Merged

Add tests for - and / #27

merged 5 commits into from
Jan 3, 2025

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