feat!: Added several fields to Quest struct
- Added field public - Added optional field available_on - Added optional field deadline - Updated tests and CLI to use these fields
This commit is contained in:
parent
96235086d7
commit
78da6dde05
4 changed files with 60 additions and 6 deletions
|
|
@ -35,7 +35,10 @@ fn quest_one() {
|
|||
reward: 100,
|
||||
name: "Example easy quest".to_owned(),
|
||||
description: "Answer this quest without any attachments or comments".to_owned(),
|
||||
answer: "Accept the answer if it has no attachments and an empty comment".to_owned()
|
||||
answer: "Accept the answer if it has no attachments and an empty comment".to_owned(),
|
||||
public: false,
|
||||
available_on: None,
|
||||
deadline: None
|
||||
};
|
||||
|
||||
assert_eq!(*quest, expected);
|
||||
|
|
|
|||
|
|
@ -6,3 +6,4 @@ reward = 100
|
|||
name = "Example easy quest"
|
||||
description = "Answer this quest without any attachments or comments"
|
||||
answer = "Accept the answer if it has no attachments and an empty comment"
|
||||
public = false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue