Skip to content

Update method isProperUnit()#9

Open
GonoGoat wants to merge 2 commits into
EphecLLN:testfrom
GonoGoat:master
Open

Update method isProperUnit()#9
GonoGoat wants to merge 2 commits into
EphecLLN:testfrom
GonoGoat:master

Conversation

@GonoGoat

Copy link
Copy Markdown
Contributor

Issue #8

Comment thread src/main/java/tp/Fraction.java Outdated
Comment on lines +192 to +197
if (this.numerator < this.denominator) {
return true;
}
else {
return false;
}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Deux remarques :

  1. if/else à optimiser (en général, un if(...) return true est simplifiable)
  2. Penser à traiter le cas particulier des fractions négatives. Si tu lis consciensieusement la spécification, cela devrait être évident.

@vvandenschrieck vvandenschrieck changed the base branch from master to test October 25, 2019 10:51
MaJ 07/11
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.

3 participants