Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion log_and_order/res/answers.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,3 @@ A:

Q: What is the SHA of the commit with the commit message "Rewrite the comments"? You can use the full length SHA or the short SHA (i.e. first 7 characters of the SHA)
A:

6 changes: 2 additions & 4 deletions log_and_order/verify.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,12 @@
from git_autograder.answers.rules import HasExactValueRule, NotEmptyRule
from git_autograder.answers.rules.answer_rule import AnswerRule

QUESTION_ONE = "What is the SHA of the commit HEAD points to?"
QUESTION_ONE = "What is the SHA of the commit HEAD points to? You can use the full length SHA or the short SHA (i.e. first 7 characters of the SHA)"
QUESTION_TWO = "What is the commit message of the commit {SHA}?"
QUESTION_TWO_REGEX = re.compile(
"^What is the commit message of the commit ([\\d\\w]+)\\?$"
)
QUESTION_THREE = (
'What is the SHA of the commit with the commit message "Rewrite the comments"?'
)
QUESTION_THREE = 'What is the SHA of the commit with the commit message "Rewrite the comments"? You can use the full length SHA or the short SHA (i.e. first 7 characters of the SHA)'


class OneOfValueRule(AnswerRule):
Expand Down