Skip to content

Conversation

natanaelsirqueira
Copy link
Contributor

No description provided.

Copy link
Contributor

@jiegillet jiegillet left a 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 :)

pub fn power_of_real(
number base: Int,
to exponent: RationalNumber,
) -> Result(Float, Nil) {
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor Author

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?

Copy link
Contributor

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 :)

@natanaelsirqueira natanaelsirqueira force-pushed the add-exercise-rational-numbers branch from ae9102f to 15b9ad5 Compare March 4, 2023 02:13
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