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

Modify Regex for Sets #72

Conversation

24Donovan24
Copy link

Modify REGEX for Sets to ensure sets only accept up to 3 digit positive integers with no leading zeroes.
Include more test statements for JUnit test for Sets.
Update command example and exercise definition in UserGuide.

@24Donovan24 24Donovan24 added the priority.Medium Nice to have label Oct 12, 2022
@24Donovan24 24Donovan24 added this to the v1.2 milestone Oct 12, 2022
@24Donovan24 24Donovan24 added the type.Task Something that needs to be done, but not a story, bug, or an epic. label Oct 12, 2022
@codecov-commenter
Copy link

Codecov Report

Base: 72.10% // Head: 72.10% // No change to project coverage 👍

Coverage data is based on head (19e4710) compared to base (f6a5066).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff            @@
##             master      #72   +/-   ##
=========================================
  Coverage     72.10%   72.10%           
  Complexity      399      399           
=========================================
  Files            70       70           
  Lines          1233     1233           
  Branches        125      125           
=========================================
  Hits            889      889           
  Misses          312      312           
  Partials         32       32           
Impacted Files Coverage Δ
src/main/java/gim/model/exercise/Sets.java 80.00% <ø> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Comment on lines 117 to 118
* **Exercise** : Physical activity done in a regular gym that is planned, structured, and repetitive and has as a final
or an intermediate objective to the improvement or maintenance of physical fitness
Copy link

Choose a reason for hiding this comment

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

Seems to be too long; if ultimately our goal is to emphasise that we require weight/sets/reps to be logged, perhaps "structured and repetitive" is enough.
Also debatable if we want to include the objective of exercise in the definition.

Maybe "physical activity, done in a regular gym, that is structured and repetitive, usually/possibly involving some weights (carried out to sustain or improve health and fitness)"

Copy link
Author

Choose a reason for hiding this comment

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

Sounds great, will make the necessary changes

Choose a reason for hiding this comment

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

I don't think the purpose of exercise is necessary, rather keep it concise.

Perhaps consider. "Physical activity that can be done in groups of successive repetitions, possibly involving some external weights."

Copy link

@kavantan kavantan left a comment

Choose a reason for hiding this comment

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

LGTM

@kavantan kavantan merged commit 1225055 into AY2223S1-CS2103T-T15-4:master Oct 13, 2022
@24Donovan24 24Donovan24 self-assigned this Nov 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority.Medium Nice to have type.Task Something that needs to be done, but not a story, bug, or an epic.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants