test: Initial unit testing
- Test quests vector loading - Test default quest on empty fields - Test correct quest - Fixed config paths handling
This commit is contained in:
parent
a5eac1b64f
commit
94d771107d
7 changed files with 102 additions and 15 deletions
8
tests/cfg/quests/1.toml
Normal file
8
tests/cfg/quests/1.toml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
# This example demonstrates typical quest
|
||||
# see main.rs
|
||||
id = 1
|
||||
difficulty = "Easy"
|
||||
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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue