Skip to content

Conversation

@SAN-MUYUN
Copy link
Contributor

Exercise Review

Exercise Discussion

#60

Checklist

  • If you require a new remote repository on the Git-Mastery organization, have you created a request for it?
  • Have you written unit tests using repo-smith to validate the exercise grading scheme?
  • Have you tested the download script using test-download.sh?
  • Have you verified that this exercise does not already exist or is not currently in review?
  • Did you introduce a new grading mechanism that should belong to git-autograder?
  • Did you introduce a new dependency that should belong to app?

@damithc damithc linked an issue Nov 2, 2025 that may be closed by this pull request
1 task
@woojiahao woojiahao added the exercise review Review a proposed exercise label Nov 10, 2025
Copy link
Member

@woojiahao woojiahao left a comment

Choose a reason for hiding this comment

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

Thank you @SAN-MUYUN for helping to work on this exercise! I've added some comments!

from exercise_utils.gitmastery import create_start_tag

def setup(verbose: bool = False):
create_start_tag(verbose)
Copy link
Member

Choose a reason for hiding this comment

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

I don't think we need this. We can just leave this function as ...

Comment on lines +17 to +24
.add_validation(QUESTION_TWO, NotEmptyRule())
.add_validation(QUESTION_TWO, HasExactValueRule("Bruce", is_case_sensitive=True))
.add_validation(QUESTION_THREE, NotEmptyRule())
.add_validation(QUESTION_THREE, HasExactListRule(["Betsy", "Beth", "Daisy"], is_case_sensitive=True))
.add_validation(QUESTION_THREE, ContainsListRule(["Betsy", "Beth", "Daisy"], subset=True, is_case_sensitive=True))
.add_validation(QUESTION_FOUR, NotEmptyRule())
.add_validation(QUESTION_FOUR, HasExactListRule(["Charlie"], is_case_sensitive=True))
.add_validation(QUESTION_FOUR, ContainsListRule(["Charlie"], subset=True, is_case_sensitive=True))
Copy link
Member

Choose a reason for hiding this comment

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

The add_validation function takes in a variadic list of arguments, so you can pass all of the rules for a given question within the same call to add_validation!

Copy link
Member

Choose a reason for hiding this comment

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

Thank you for writing such comprehensive test specs for the answers.txt! But it's completely okay to keep the spec as the base file! When you set mock_answers, it immediately loads in the answers.txt with the answers you give it! So it doesn't read off of the unit tested file.

@SAN-MUYUN
Copy link
Contributor Author

Thanks so much for the feedback! I will make the necessary changes hopefully by next week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

discussing exercise review Review a proposed exercise

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Exercise Discussion] T4L1/view-commits

2 participants