-
-
Notifications
You must be signed in to change notification settings - Fork 82
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 practice exercise rational-numbers
#248
base: main
Are you sure you want to change the base?
Add practice exercise rational-numbers
#248
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work! Let's iron out some wrinkles :)
exercises/practice/rational-numbers/test/rational_numbers_test.gleam
Outdated
Show resolved
Hide resolved
pub fn power_of_real( | ||
number base: Int, | ||
to exponent: RationalNumber, | ||
) -> Result(Float, Nil) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It feels strange to have a Result
here but no test with an error case...
What do you think?
Maybe we should add a test case with a negative base to the problem-specs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good. I'll work on a PR later today.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Opened the PR and it got closed as expected. Are you able to reopen?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you. Let's wait for the PR to be merged before merging this one :)
ae9102f
to
15b9ad5
Compare
No description provided.